aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.local
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-10-03 16:16:56 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-10-03 16:16:56 -0500
commit23c03cd2fde16eeaac9a0647f70d89f1f9661fcc (patch)
treee12cd02ba2e83f6dec814ae9fe93c2afafb0a026 /tmux/.local
parentffaadd8efcd4ac5b4e86be63c5cbb150b98d3266 (diff)
feat(alacritty,tmux): simplify terminal setup
Diffstat (limited to 'tmux/.local')
-rwxr-xr-xtmux/.local/bin/mksession4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux/.local/bin/mksession b/tmux/.local/bin/mksession
index 8ca6f7a..432ef9c 100755
--- a/tmux/.local/bin/mksession
+++ b/tmux/.local/bin/mksession
@@ -1,6 +1,8 @@
#!/bin/sh
-if [ "$1" = '-' ]; then
+if [ $# -eq 0 ]; then
+ set -- "$PWD"
+elif [ "$1" = '-' ]; then
session="$(cat -)"
if [ -z "$session" ]; then
exit 0