.tmux.conf: add split
This commit is contained in:
parent
e7e80b08d8
commit
15dc3e9f6b
|
@ -1,10 +1,11 @@
|
||||||
## pcht tmux configurarion
|
## pcht tmux configurarion
|
||||||
# (c) 2018
|
# (c) 2018
|
||||||
|
|
||||||
# change prefix to ctrl+a
|
# change prefix to ctrl+a and
|
||||||
|
# use "C-a a"to send C-a to shell
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-a
|
set -g prefix C-a
|
||||||
bind C-a send-prefix
|
bind a send-prefix
|
||||||
|
|
||||||
# disable login-shell on tmux
|
# disable login-shell on tmux
|
||||||
# https://wiki.archlinux.org/index.php/Tmux#Start_a_non-login_shell
|
# https://wiki.archlinux.org/index.php/Tmux#Start_a_non-login_shell
|
||||||
|
@ -13,7 +14,9 @@ set -g default-command "${SHELL}"
|
||||||
# open pane/window in same directory
|
# open pane/window in same directory
|
||||||
# https://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux
|
# https://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux
|
||||||
bind '"' split-window -c "#{pane_current_path}"
|
bind '"' split-window -c "#{pane_current_path}"
|
||||||
|
bind s split-window -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
bind '|' split-window -h -c "#{pane_current_path}"
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
# last pane like in screen
|
# last pane like in screen
|
||||||
|
|
Loading…
Reference in New Issue