some tmux changes
- open new pane in current directory - add info, when config is reloaded - set terminal title
This commit is contained in:
@@ -2,6 +2,7 @@ bin recurse
|
|||||||
.config recurse
|
.config recurse
|
||||||
|
|
||||||
bin/dfm chmod 0755
|
bin/dfm chmod 0755
|
||||||
|
.tmux/newpanes 0755
|
||||||
.tmux/zoom 0755
|
.tmux/zoom 0755
|
||||||
|
|
||||||
README.md skip
|
README.md skip
|
||||||
|
|||||||
13
.tmux.conf
13
.tmux.conf
@@ -102,9 +102,9 @@ unbind -t vi-copy Enter
|
|||||||
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
|
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
|
||||||
|
|
||||||
|
|
||||||
# split panes using | and -
|
# split panes using | and -, open new pane in current directory
|
||||||
bind | split-window -h
|
bind | send-keys " ~/.tmux/newpanes -h" C-m
|
||||||
bind - split-window -v
|
bind - send-keys " ~/.tmux/newpanes -v" C-m
|
||||||
unbind '"'
|
unbind '"'
|
||||||
unbind %
|
unbind %
|
||||||
|
|
||||||
@@ -115,8 +115,13 @@ setw -g pane-base-index 1
|
|||||||
|
|
||||||
|
|
||||||
# reload config file (change file location to your the tmux.conf you want to use)
|
# reload config file (change file location to your the tmux.conf you want to use)
|
||||||
bind r source-file ~/.tmux.conf
|
bind r source-file ~/.tmux.conf \; display "tmux config reloaded..."
|
||||||
|
|
||||||
|
|
||||||
# Setup 'x' zoom into a panes (maximize) an save/restore other panes in the current window
|
# Setup 'x' zoom into a panes (maximize) an save/restore other panes in the current window
|
||||||
bind x run ". ~/.tmux/zoom"
|
bind x run ". ~/.tmux/zoom"
|
||||||
|
|
||||||
|
|
||||||
|
# set terminal title
|
||||||
|
set -g set-titles on
|
||||||
|
set -g set-titles-string '#(whoami)@#h | #(curl ipecho.net/plain;echo)'
|
||||||
5
.tmux/newpanes
Executable file
5
.tmux/newpanes
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
TMUX_CURRENT_DIR=`pwd`
|
||||||
|
tmux split-window $1
|
||||||
|
tmux send-keys "cd $TMUX_CURRENT_DIR;clear" C-m
|
||||||
Reference in New Issue
Block a user