hopefull6 ]
This commit is contained in:
@@ -28,8 +28,8 @@ if [[ "$1" == "--help" || "$1" == "help" || "$1" == "-h" || "$1" == "h" ]]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check for running shell and set rcFile accordingly
|
||||||
defShell=$(awk -F: -v user="$(whoami)" '$1 == user {print $NF}' /etc/passwd)
|
defShell=$(awk -F: -v user="$(whoami)" '$1 == user {print $NF}' /etc/passwd)
|
||||||
|
|
||||||
if [[ "$defShell" =~ zsh$ ]]; then
|
if [[ "$defShell" =~ zsh$ ]]; then
|
||||||
echo -e "\nSelected zsh shell automatically\n"
|
echo -e "\nSelected zsh shell automatically\n"
|
||||||
rcFile="$HOME/.zshrc"
|
rcFile="$HOME/.zshrc"
|
||||||
|
|||||||
Reference in New Issue
Block a user