Last active
October 17, 2023 03:52
-
-
Save mattn/22ce64c237538eae3b389fa70f8aad1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "xterm-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
set -g mouse on | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
run -b '~/.tmux/plugins/tpm/tpm' | |
set -g @plugin 'odedlaz/tmux-onedark-theme' | |
bind-key m run-shell "~/bin/tmux-popup.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
width=${2:-80%} | |
height=${2:-80%} | |
if [ "$(tmux display-message -p -F "#{session_name}")" = "popup" ];then | |
tmux detach-client | |
else | |
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -K -E -R "tmux attach -t popup || tmux new -s popup" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment