Skip to content

Commit d304543

Browse files
authored
Remove uses of builtin from POSIX (#1146)
1 parent ecf72c9 commit d304543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/posix.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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
}

0 commit comments

Comments
 (0)