dotfiles/.tmux.conf

25 lines
679 B
Plaintext
Raw Normal View History

2018-03-15 10:39:19 +00:00
## pcht tmux configurarion
# (c) 2018
# change prefix to ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# disable login-shell on tmux
# https://wiki.archlinux.org/index.php/Tmux#Start_a_non-login_shell
set -g default-command "${SHELL}"
# open pane/window in same directory
# https://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# last pane like in screen
bind C-a last-pane
# reload this file
bind r source-file /home/patrick/.tmux.conf \; display-message ".tmux.conf reloaded"