Skip to content
Snippets Groups Projects
Commit 15081fe0 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Avoid error when executed by /bin/sh

No idea why

  [[ -n $ZSH_VERSION ]] && vcsh_exit() {vcsh exit; zle reset-prompt;}

errors out with

  vcsh: 96: Syntax error: "}" unexpected (expecting "fi")

but oh well.
parent a2edd7a5
Branches
Tags
No related merge requests found
......@@ -93,7 +93,12 @@ elif [ "$1" = 'use' ]; then
if [[ -o NO_IGNORE_EOF ]]; then
export VCSH_NO_IGNORE_EOF=1
setopt IGNORE_EOF
vcsh_exit() {vcsh exit; zle reset-prompt;}
if [[ -n $ZSH_VERSION ]]; then
vcsh_exit() {
vcsh exit;
zle reset-prompt;
}
fi
zle -N vcsh_exit
bindkey '^d' 'vcsh_exit'
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment