diff --git a/lib/git/_shared.sh b/lib/git/_shared.sh deleted file mode 100644 index 3450d56..0000000 --- a/lib/git/_shared.sh +++ /dev/null @@ -1,8 +0,0 @@ -# Detect shell -if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; else shell="bash"; fi -# Detect whether zsh 'shwordsplit' option is on by default. -if [[ $shell == "zsh" ]]; then zsh_shwordsplit=$((setopt | grep -q shwordsplit) && echo "true"); fi -# Switch on/off shwordsplit for functions that require it. -zsh_compat(){ if [[ $shell == "zsh" && -z $zsh_shwordsplit ]]; then setopt shwordsplit; fi; } -zsh_reset(){ if [[ $shell == "zsh" && -z $zsh_shwordsplit ]]; then unsetopt shwordsplit; fi; } -