capture-pane -J
save-buffer /tmp/tmux-buffer
delete-buffer
- display-popup -KE -w 100% -R "urlview /tmp/tmux-buffer"
+ display-popup -E -w 100% "urlview /tmp/tmux-buffer"
}
bind-key y {
}
bind-key t display-menu \
- music t "display-popup -KE -w 100% -R ~/bin/tmux-menu-music.sh" \
- pass p "display-popup -KE -R ~/bin/tmux-menu-pass-session.sh" \
- dict d "display-popup -KE -h 100% -R ~/bin/tmux-menu-dict.sh" \
- calc c "display-popup -KE -R ~/bin/tmux-menu-calc.sh" \
- cal l "display-popup -R \"cal -3N\"" \
- top o "display-popup -KE -h 100% -R \"top -s 1\""
+ music t "display-popup -E -w 100% '~/bin/tmux-menu-music.sh'" \
+ pass p "display-popup -E '~/bin/tmux-menu-pass-session.sh'" \
+ dict d "display-popup -E -h 100% '~/bin/tmux-menu-dict.sh'" \
+ calc c "display-popup -E '~/bin/tmux-menu-calc.sh'" \
+ cal l "display-popup 'cal -3N'" \
+ top o "display-popup -E -h 100% 'top -s 1'"
bind-key o display-menu \
- find o "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh find '#{pane_current_path}'\"" \
- buf-files f "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh buf-files '#{pane_current_path}'\"" \
- git-files g "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-files '#{pane_current_path}'\"" \
- git-branches b "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-branches '#{pane_current_path}'\"" \
- git-commits c "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-commits '#{pane_current_path}'\""
+ find o "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh find '#{pane_current_path}'\"" \
+ buf-files f "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh buf-files '#{pane_current_path}'\"" \
+ git-files g "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-files '#{pane_current_path}'\"" \
+ git-branches b "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-branches '#{pane_current_path}'\"" \
+ git-commits c "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-commits '#{pane_current_path}'\""
-TMUX=/usr/local/bin/tmux
-
paste()
{
local pane="$1"
local cmd="$2"
- $TMUX set-buffer "$cmd"
- $TMUX paste-buffer -t "$pane"
- $TMUX delete-buffer
- $TMUX send-keys -t "$pane" Enter
+ tmux set-buffer "$cmd"
+ tmux paste-buffer -t "$pane"
+ tmux delete-buffer
+ tmux send-keys -t "$pane" Enter
}
. ~/bin/tmux-common.sh
-$TMUX has-session -t im && exit
-$TMUX new-session -d -s im
-$TMUX rename-window -t im:1 "mattermost"
-$TMUX split-window -t im:1
+tmux has-session -t im && exit
+tmux new-session -d -s im
+tmux rename-window -t im:1 "mattermost"
+tmux split-window -t im:1
paste im:1.0 "~/work/matterircd/start.sh"
sleep 1
paste im:1.1 "irssi"
-$TMUX resize-pane -U -t im:1 15
+tmux resize-pane -U -t im:1 15
-CMD="$TMUX attach-session -t im" CMDTITLE="Terminal8" ~/bin/dwm-term &
+CMD="tmux attach-session -t im" CMDTITLE="Terminal8" ~/bin/dwm-term &