66 Commits

Author SHA1 Message Date
Lazarus Lazaridis
4f47eac606 Update goto script extension 2018-03-12 08:25:49 +02:00
Lazarus Lazaridis
34a08a4bee Fix indentation 2018-03-12 08:13:38 +02:00
Lazarus Lazaridis
2dde2ed274 Add license info 2018-03-12 08:13:16 +02:00
Lazarus Lazaridis
3182b61b98 Fix shellcheck errors and warnings. 2018-03-12 08:12:54 +02:00
Lazarus Lazaridis
75835c36e4 Merge remote-tracking branch 'upstream/master' into install-script 2018-03-12 08:04:17 +02:00
Lazarus Lazaridis
37a960d000 Fix shellcheck warnings. 2018-03-12 07:54:31 +02:00
Lazarus Lazaridis
19393468fc Resolve goto db upon completion.
Fixes #20.
2018-03-12 07:37:52 +02:00
Lazarus Lazaridis
0b3b8527a9
Merge pull request #13 from jshort/zsh_complete
Add support for zsh completion
2018-03-12 07:30:08 +02:00
Lazarus Lazaridis
141e42d506 Merge remote-tracking branch 'upstream/master' into zsh_complete 2018-03-12 07:28:54 +02:00
Lazarus Lazaridis
f92a4df24a
Merge pull request #19 from OmriHab/dev
Added duplicate note.

Great work @OmriHab !
2018-03-12 06:47:02 +02:00
Lazarus Lazaridis
12336713a0 Move duplicate warning before registration message. 2018-03-12 06:45:19 +02:00
Lazarus Lazaridis
51f8c88eba [MINOR] Fix indentation and comments 2018-03-12 06:44:29 +02:00
Lazarus Lazaridis
109f0eb62f Add function to display warnings ala errors. 2018-03-12 06:43:55 +02:00
Lazarus Lazaridis
a9fed9b549 Enable interpretation of backslash escapes on error. 2018-03-12 06:42:25 +02:00
Lazarus Lazaridis
a1c2b8a78c Fix shellcheck errors and warnings. 2018-03-12 06:40:47 +02:00
Omri
fe1ca68950 Updated readme's install 2018-03-11 13:02:24 +02:00
Omri
3bb1dc79de Added duplicate note 2018-03-11 12:49:33 +02:00
Omri
6cfe42eda3 Added GOTO_DB variable 2018-03-11 12:03:48 +02:00
Omri
bdf17eb705 Added install script 2018-03-11 12:00:20 +02:00
James Short
b1747d35ec Add support for zsh completion.
I also made the documentation and name of file more generic as it works
for both zsh and bash.  I removed the shebang since this file is simply
sourced by the calling shell and it doesn't have executable permissions
anyway.

The various functions were updated to return non-zero on errors in case
anyone uses goto in other scripts.

The logic for parsing ~/.goto to determine which aliases can be cleaned
was simplified into an awk script that removed the array manipulation
logic that was not zsh compatible.
2018-03-09 10:33:53 -08:00
Lazarus Lazaridis
860f81e432 Add autocomplete options for version 2018-03-09 01:41:40 +02:00
Lazarus Lazaridis
36447d94c9 Properly split lines with directories with spaces 2018-03-09 01:39:38 +02:00
Lazarus Lazaridis
6c92199e20
Fix cleanup in macOS
Refs #12.
2018-03-09 01:25:32 +02:00
Lazarus Lazaridis
1370e23ee6
Fix macOS errors
Refs #12
2018-03-09 01:09:31 +02:00
Lazarus Lazaridis
825cc52de7
Don't use mapfile
Refs #12.
2018-03-09 01:00:54 +02:00
Lazarus Lazaridis
ae7e85180e Don't use mapfile.
Refs #12.
2018-03-09 00:47:17 +02:00
Lazarus Lazaridis
6190887a3c
Merge pull request #11 from SubOptimal/contribute
merge consecutive calls of sed
2018-03-08 16:11:05 +02:00
Lazarus Lazaridis
21da83518f
Fix shellcheck warning.
Comply with https://github.com/koalaman/shellcheck/wiki/SC1117
2018-03-08 16:10:37 +02:00
Frank Dietrich
ff75b024b4 typo fix 2018-03-08 08:18:27 +01:00
Frank Dietrich
c48fff0322 merge consecutive calls to sed 2018-03-08 08:08:50 +01:00
Lazarus Lazaridis
e536db0aca Update local variable definitions 2018-03-08 03:45:58 +02:00
Lazarus Lazaridis
92bd6ef882 Add ShellCheck note when contributing. 2018-03-08 03:31:20 +02:00
Lazarus Lazaridis
0baf5c1481 Provide version command
Fixes #10
2018-03-08 03:22:57 +02:00
Lazarus Lazaridis
dae1cbd612 Fix shellcheck warnings and errors. 2018-03-08 03:12:30 +02:00
Lazarus Lazaridis
eb01f9c065 Link to zsh issue. 2018-03-07 00:39:52 +02:00
Lazarus Lazaridis
f94133b7bb Update readme with zsh issues.
Refs #7.
2018-03-07 00:37:59 +02:00
Lazarus Lazaridis
c3b0c491ec Handle directories with spaces.
Refs #8.
2018-03-06 23:39:07 +02:00
Lazarus Lazaridis
01cdb9a8d0
Merge pull request #4 from jcavejr/master
Allow hyphens and underscores in aliases
2018-03-06 22:31:29 +02:00
Lazarus Lazaridis
8aa08c36ab
Shorten message. 2018-03-06 22:30:05 +02:00
Lazarus Lazaridis
74af9ef9cc
Update goto.bash 2018-03-06 22:25:04 +02:00
Lazarus Lazaridis
29a3bd6352
Remove redundant alpha class on the 2nd character. 2018-03-06 22:21:24 +02:00
Jeff Cave
1174ae13fb removed ability to start an alias name with a - 2018-03-06 14:50:55 -05:00
Lazarus Lazaridis
d47bd2ce70
Update README.md 2018-03-06 18:23:32 +02:00
Lazarus Lazaridis
4f610a1ad7 Display informative text if no aliases exist upon listing.
Fixes #5.
2018-03-06 12:03:22 +02:00
Jeff Cave
ae2c3b9084 updated error message for invalid name on register 2018-03-05 19:54:14 -05:00
Jeff Cave
35f83adce4 added ability to use hyphen and underscore in names 2018-03-05 19:45:28 -05:00
Lazarus Lazaridis
21f4f2b060 Fix code snippet. 2018-03-06 01:14:53 +02:00
Lazarus Lazaridis
b654c6933a Add missing completion for the cleanup command. 2018-03-05 23:44:58 +02:00
Lazarus Lazaridis
58c3ea9271 Update readme. 2018-03-05 23:43:30 +02:00
Lazarus Lazaridis
0ac31f2bf3 Alter script to be compatible with macOS.
Refs #1.
2018-03-05 23:16:16 +02:00