Skip to content

Instantly share code, notes, and snippets.

@subhojit777
Last active August 21, 2018 10:36
Show Gist options
  • Save subhojit777/7cf2298c73da297ca478 to your computer and use it in GitHub Desktop.
Save subhojit777/7cf2298c73da297ca478 to your computer and use it in GitHub Desktop.
Tmux configurations
# ~/.tmux.conf
unbind C-b
set -g prefix C-a
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n C-k clear-history
setw -g monitor-activity on
set -g visual-activity on
set-window-option -g window-status-current-bg yellow
set -g mouse on
bind a send-prefix
# Bash
# set-option -g default-command "reattach-to-user-namespace -l bash"
# Zsh
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Override the default window splitter bindings so that the current directory is maintained.
bind % split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment