6 lines
185 B
Text
6 lines
185 B
Text
|
#!/usr/bin/env fish
|
||
|
set session_name $argv[1]
|
||
|
set dir (set -q $argv[2] && echo $argv2 || pwd)
|
||
|
tmux new-session -D -s $session_name -c $dir || \
|
||
|
tmux attach-session -d -t $session_name
|