diff --git a/bash/.bashrc.append b/bash/.bashrc.append index e8ff566..bd72c79 100644 --- a/bash/.bashrc.append +++ b/bash/.bashrc.append @@ -29,6 +29,15 @@ popd() { cd . } -if [ -z "$TMUX" ] && [ "$PWD" == ~ ]; then - tmux new -As default +if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ]; then + tput sc + tput smso + echo -n 'tmux: space - shell: any key' + tput sgr0 + read -rsN1 input + tput rc + tput el + if [ "$input" = ' ' ]; then + tmux new -As default + fi fi