File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
1111__zoxide_pwd() {
1212{%- if cfg!(windows) %}
13- \command cygpath -w "$(\builtin pwd -P)"
13+ \command cygpath -w "$(\command pwd -P)"
1414{%- else if resolve_symlinks %}
1515 \command pwd -P
1616{%- else %}
@@ -35,7 +35,7 @@ __zoxide_cd() {
3535{%- when InitHook::Prompt -%}
3636# Hook to add new entries to the database.
3737__zoxide_hook() {
38- \command zoxide add -- "$(__zoxide_pwd || \builtin true)"
38+ \command zoxide add -- "$(__zoxide_pwd || \command true)"
3939}
4040
4141# Initialize hook.
@@ -95,7 +95,7 @@ __zoxide_z() {
9595 elif [ "$#" -eq 1 ] && [ -d "$1" ]; then
9696 __zoxide_cd "$1"
9797 else
98- __zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" -- "$@")" &&
98+ __zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \command true)" -- "$@")" &&
9999 __zoxide_cd "${__zoxide_result}"
100100 fi
101101}
You can’t perform that action at this time.
0 commit comments