diff options
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 |