Tmux session work
This commit is contained in:
parent
f3a90e4c26
commit
0cc35f6720
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
N _scratch
|
||||
tmux-lyte-session notes $NOTES_DIR -- fish -C "N _scratch"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#!/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"
|
||||
set dir (set -q argv[2] && echo $argv[2] || pwd)
|
||||
tmux new-session -D -s "$session_name" -c "$dir" $argv[3..-1] || \
|
||||
tmux attach-session -d -t "$session_name" -c "$dir"
|
||||
|
|
Reference in a new issue