Skip to content

Commit

Permalink
add tmux setting
Browse files Browse the repository at this point in the history
  • Loading branch information
marugoshi committed Feb 5, 2021
1 parent c2fd3e5 commit 783b87c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions common/tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# prefix
set -g prefix C-e

# coloring
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'

# pane number
set-option -g status-left '#H: [#P]'

# pane select with vim key bind
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# split pane vertical
bind | split-window -h

# split pane horizontal
bind - split-window -v

# enable mouse
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"

1 change: 1 addition & 0 deletions zsh/common/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ alias l='less'
alias q='exit'
alias s='TERM=screen screen'
alias sc='TERM=screen screen -c .screenrc'
alias t='tmux'

alias g='git'
alias b='bundle'
Expand Down

0 comments on commit 783b87c

Please sign in to comment.