Fix tmux.conf location and add vi mode.

This commit is contained in:
Cyteen 2018-02-25 11:35:51 +00:00
parent 8878b8eab2
commit 05f1138e71
1 changed files with 12 additions and 4 deletions

View File

@ -76,15 +76,15 @@ EOF
# wget -c --directory-prefix ~/.config/tmux/ https://raw.githubusercontent.com/Netherdrake/Dotfiles/master/config/tmux/tmux.conf
cat > ~/.config/tmux/tmux.conf << 'EOF'
# set-option -g default-shell /bin/fish
set-option -g default-shell "/usr/bin/fish"
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g status on
set-option -g status-interval 2
# set-option -g status-utf8 on
set-option -g status-left-length 60
set-option -g status-right-length 60
set-option -g default-terminal xterm-256color
set-option -g default-terminal "tmux-256color"
# set-option -g default-shell /bin/fish
# set-option -g default-shell "/usr/bin/fish"
setw -g mode-keys vi
bind h select-pane -L
@ -193,13 +193,19 @@ EOF
#https://github.com/caiogondim/maglev
cat > ~/.config/tmux/tmux.conf << 'EOF'
#cat > ~/.config/tmux/tmux.conf << 'EOF'
cat > ~/.tmux.conf << 'EOF'
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-option -g status-position top
set-option -g default-terminal "tmux-256color"
set-window-option -g mode-keys vi
set-option -g repeat-time 0
# Removes ESC delay
@ -225,3 +231,5 @@ set -g @tpm_plugins ' \
#run '~/.tmux/plugins/tpm/tpm'
run '/usr/share/tmux-plugin-manager/tpm'
EOF
bash -c "/usr/share/tmux-plugin-manager/bin/install_plugins"