You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put this command eval "$(zoxide init zsh)" in my .zshrc at the bottom of the file as the README said,
When I open the terminal I got this error "(eval):51: parse error near `}" at the startup of the terminal,
I run the command and exported in an external file and then opened it, I found out that the problem with the function __zoxide_z(), the line 51 was the } at the end of the this function.
function __zoxide_z() {
# shellcheck disable=SC2199
if [[ "$#" -eq 0 ]]; then
__zoxide_cd ~
elif [[ "$#" -eq 1 ]] && { [[ -d "$1" ]] || [[ "$1" = '-' ]] || [[ "$1" =~ ^[-+][0-9]$ ]]; }; then
__zoxide_cd "$1"
else
\builtin local result
# shellcheck disable=SC2312
result="$(\command zoxide query --exclude "$(__zoxide_pwd)" -- "$@")" && __zoxide_cd "${result}"
fi
}
i don't know what is the problem with this function actually. How can I solve this problem?
The text was updated successfully, but these errors were encountered:
I put this command
eval "$(zoxide init zsh)"
in my .zshrc at the bottom of the file as the README said,When I open the terminal I got this error "(eval):51: parse error near `}" at the startup of the terminal,
I run the command and exported in an external file and then opened it, I found out that the problem with the function __zoxide_z(), the line 51 was the } at the end of the this function.
i don't know what is the problem with this function actually. How can I solve this problem?
The text was updated successfully, but these errors were encountered: