8 lines
198 B
Fish
Executable file
8 lines
198 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
set session_name $argv[1]
|
|
|
|
set d (set -q $argv[2] && echo $argv2 || pwd)
|
|
|
|
tmux new-session -D -s "$session_name" -c "$d" || \
|
|
tmux attach-session -d -t "$session_name" -c "$d"
|