Gimme a neater proccess list plz
- Id
- 5235e7f9dead80996498bafd5a3aba9cccd75386
- Author
- Caio
- Commit time
- 2019-07-01T11:12:08+02:00
Modified bin/t
#!/bin/sh
SESSION=${1-scratch}
-tmux attach -t $SESSION || tmux new-session -s $SESSION
+if tmux has-session -t $SESSION; then
+ exec tmux attach -t $SESSION
+else
+ exec tmux new-session -s $SESSION
+fi