diff --git a/zlogin b/zlogin index 6d4eeb8..81b4c90 100644 --- a/zlogin +++ b/zlogin @@ -41,7 +41,7 @@ if [ -f ~/.ssh/config_00base ]; then fi # List tmux sessions if tmux is available -if hash tmux; then +if [ $(command -v tmux) ]; then TMUX_SESSION=$(tmux ls 2> /dev/null|grep -- window) # If tmux session available and if not already inside a tmux if [ ${TMUX_SESSION} ] && [ -z "${TMUX}" ]; then