[fix] Add fnm for both macos and linux
This commit is contained in:
9
config/tmux/scratch
Executable file
9
config/tmux/scratch
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
width=${2:-80%}
|
||||
height=${2:-80%}
|
||||
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
|
||||
tmux detach-client
|
||||
else
|
||||
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
|
||||
fi
|
||||
Reference in New Issue
Block a user