[fix] Add fnm for both macos and linux

This commit is contained in:
Uttarayan
2023-07-25 18:51:30 +05:30
parent ba2662b20b
commit 6ac9a14e74
5 changed files with 27 additions and 3 deletions

9
config/tmux/scratch Executable file
View 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