This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/tmux-lyte-session

9 lines
198 B
Text
Raw Normal View History

2021-06-11 21:32:54 -05:00
#!/usr/bin/env fish
2021-06-11 21:32:54 -05:00
set session_name $argv[1]
2021-11-11 13:08:37 -06:00
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"