Friends don't let friends tmux and root.
This commit is contained in:
parent
07485b1f02
commit
1237da247e
|
@ -5,6 +5,11 @@ if (( ! $+commands[tmux] )); then
|
|||
return 1
|
||||
fi
|
||||
|
||||
# If running as root, stop and return.
|
||||
if [ "$EUID" -ne 0 ] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# If this this terminal meets any of these return.
|
||||
env_array=($TMUX $EMACS $VIM $INSODE_EMACS $VSCODE)
|
||||
if [[ -n $env_array ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user