mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-12-23 05:36:53 +00:00
add tmux
This commit is contained in:
parent
6e8e199239
commit
cb5b54ade4
2 changed files with 53 additions and 0 deletions
51
.tmux.conf
Normal file
51
.tmux.conf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Set a new prefix / leader key.
|
||||
set -g prefix `
|
||||
bind ` send-prefix
|
||||
|
||||
# Add a bit more scroll history in the buffer.
|
||||
set -g history-limit 50000
|
||||
|
||||
# Enable color support inside of tmux.
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
|
||||
# Ensure window titles get renamed automatically.
|
||||
setw -g automatic-rename
|
||||
|
||||
# Ensure window index numbers get reordered on delete.
|
||||
set-option -g renumber-windows on
|
||||
|
||||
# Start windows and panes index at 1, not 0.
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Enable full mouse support.
|
||||
set -g mouse on
|
||||
|
||||
# Unbind default keys
|
||||
unbind C-b
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# Reload the tmux config.
|
||||
bind-key r source-file ~/.tmux.conf
|
||||
|
||||
# Split panes.
|
||||
bind-key Down split-window -v
|
||||
bind-key Right split-window -h
|
||||
|
||||
# Move around panes with ALT + arrow keys.
|
||||
bind-key -n M-Up select-pane -U
|
||||
bind-key -n M-Left select-pane -L
|
||||
bind-key -n M-Down select-pane -D
|
||||
bind-key -n M-Right select-pane -R
|
||||
|
||||
# Resize panes with CTRL + ALT + arrow keys.
|
||||
bind-key -n C-M-Right resize-pane -R
|
||||
bind-key -n C-M-Left resize-pane -L
|
||||
bind-key -n C-M-Up resize-pane -U
|
||||
bind-key -n C-M-Down resize-pane -D
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
2
install
2
install
|
|
@ -42,6 +42,7 @@ if [ ! -d "${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting" ]; then
|
|||
echo "Installing zsh-syntax-highlighting"
|
||||
git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
|
||||
fi
|
||||
[[ -d "${HOME}/.tmux/plugins/tpm" ]] || git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
|
||||
[[ -d ${LOCAL_BIN_DIR} ]] || mkdir -p ${LOCAL_BIN_DIR}
|
||||
|
||||
|
|
@ -54,6 +55,7 @@ ln -sf ${INSTALL_DIR}/.functions ${HOME}/.functions
|
|||
ln -sf ${INSTALL_DIR}/.gitconfig ${HOME}/.gitconfig
|
||||
ln -sf ${INSTALL_DIR}/.npmrc ${HOME}/.npmrc
|
||||
ln -sf ${INSTALL_DIR}/.pythonrc ${HOME}/.pythonrc
|
||||
ln -sf ${INSTALL_DIR}/.tmux.conf ${HOME}/.tmux.conf
|
||||
ln -sf ${INSTALL_DIR}/.zprofile ${HOME}/.zprofile
|
||||
ln -sf ${INSTALL_DIR}/.zshenv ${HOME}/.zshenv
|
||||
ln -sf ${INSTALL_DIR}/.zshrc ${HOME}/.zshrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue