mirror of
https://github.com/iridakos/goto.git
synced 2025-05-15 23:10:35 -07:00
Merge pull request #52 from escozul/hotfix/improve-various-bash-compatibility
Improve compatibility with various bash configs
This commit is contained in:
commit
b31295da8b
4
goto.sh
4
goto.sh
@ -118,7 +118,7 @@ _goto_version()
|
||||
# Helpful for ~, ., .. paths
|
||||
_goto_expand_directory()
|
||||
{
|
||||
cd "$1" 2>/dev/null && pwd
|
||||
builtin cd "$1" 2>/dev/null && pwd
|
||||
}
|
||||
|
||||
# Lists registered aliases.
|
||||
@ -263,7 +263,7 @@ _goto_directory()
|
||||
|
||||
target=$(_goto_resolve_alias "$1") || return 1
|
||||
|
||||
cd "$target" 2> /dev/null || \
|
||||
builtin cd "$target" 2> /dev/null || \
|
||||
{ _goto_error "Failed to goto '$target'" && return 1; }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user