Skip to content

Commit

Permalink
Update goto.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iridakos authored Nov 15, 2020
1 parent a9ad435 commit 5bb4939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ _goto_cleanup()
# Changes to the given alias' directory
_goto_directory()
{
# directly goto the special name that unable register, eg: ~
# directly goto the special name that is unable to be registered due to invalid alias, eg: ~
if ! [[ $1 =~ ^[[:alnum:]]+[a-zA-Z0-9_-]*$ ]]; then
{ builtin cd "$1" 2> /dev/null && return 0; } || \
{ _goto_error "Failed to goto '$1'" && return 1; }
Expand Down

0 comments on commit 5bb4939

Please sign in to comment.