terminal-tmux.sh
· 202 B · Bash
Brut
#!/bin/bash
# Use this as the executable command for Gnome Terminal
# Start or attach Tmux on every login
if which tmux >/dev/null 2>&1; then
test -z "$TMUX" && (tmux attach || tmux new-session)
fi
| 1 | #!/bin/bash |
| 2 | # Use this as the executable command for Gnome Terminal |
| 3 | # Start or attach Tmux on every login |
| 4 | |
| 5 | if which tmux >/dev/null 2>&1; then |
| 6 | test -z "$TMUX" && (tmux attach || tmux new-session) |
| 7 | fi |