diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-10-03 16:16:56 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-10-03 16:16:56 -0500 |
commit | 23c03cd2fde16eeaac9a0647f70d89f1f9661fcc (patch) | |
tree | e12cd02ba2e83f6dec814ae9fe93c2afafb0a026 /tmux/.local | |
parent | ffaadd8efcd4ac5b4e86be63c5cbb150b98d3266 (diff) |
feat(alacritty,tmux): simplify terminal setup
Diffstat (limited to 'tmux/.local')
-rwxr-xr-x | tmux/.local/bin/mksession | 4 |
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 |