Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active October 17, 2023 03:52
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/22ce64c237538eae3b389fa70f8aad1e to your computer and use it in GitHub Desktop.
Save mattn/22ce64c237538eae3b389fa70f8aad1e to your computer and use it in GitHub Desktop.
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"
#!/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