Added cdots script.

Added cdots script, instead of alias. Now toggles or starts a
tmux session.
This commit is contained in:
Michael Housh
2023-09-30 00:20:18 -04:00
parent 7f13161948
commit 742f26a81c
2 changed files with 12 additions and 5 deletions

7
scripts/scripts/cdots Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
session="dots"
tmux switch-client -t "$session" || \
tmux attach -t "$session" || \
tmux new-session -c "$DOTFILES" -s "$session"