fix(OSX): Remove running shell check on OSX
The running shell check in it's current state is non-portable. As such if the current system is Darwin the check is removed
This commit is contained in:
parent
a60119faff
commit
592295a85a
36
ZshPlug.zsh
36
ZshPlug.zsh
|
|
@ -35,7 +35,9 @@ if [[ "$SHELL" != "/bin/zsh" ]]; then
|
||||||
printf "and let me know what Distro you're using and the path to zsh\n" >&2
|
printf "and let me know what Distro you're using and the path to zsh\n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Confirm running shell is actually zsh
|
## Confirm running shell is actually zsh
|
||||||
|
if [[ "$(uname)" != "Darwin" ]]; then
|
||||||
runningShell="$(ps -p $$ c -o cmd | tail -n1)"
|
runningShell="$(ps -p $$ c -o cmd | tail -n1)"
|
||||||
if [[ "$runningShell" != "zsh" ]]; then
|
if [[ "$runningShell" != "zsh" ]]; then
|
||||||
printf "Your $SHELL variable is set to %s\n" $SHELL >&2
|
printf "Your $SHELL variable is set to %s\n" $SHELL >&2
|
||||||
|
|
@ -45,6 +47,7 @@ if [[ "$runningShell" != "zsh" ]]; then
|
||||||
printf "and let me know what Distro you are using and the name that zsh has\n"
|
printf "and let me know what Distro you are using and the name that zsh has\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
|
@ -172,36 +175,3 @@ unset -f ZSH_PLUG_pluginInstall
|
||||||
unset -f ZSH_PLUG_pluginTest
|
unset -f ZSH_PLUG_pluginTest
|
||||||
unset -f ZSH_PLUG_pluginLoad
|
unset -f ZSH_PLUG_pluginLoad
|
||||||
unset githubPrefix
|
unset githubPrefix
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user