Skip to content

Instantly share code, notes, and snippets.

@dereknex
Last active May 6, 2020 00:49
Show Gist options
  • Select an option

  • Save dereknex/21895fba9a46e449c2c64edb21e9402d to your computer and use it in GitHub Desktop.

Select an option

Save dereknex/21895fba9a46e449c2c64edb21e9402d to your computer and use it in GitHub Desktop.
tmux configuation
set-option -g default-shell /usr/bin/zsh
set-option -g default-terminal "screen-256color"
setw -g mode-keys vi
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
run '~/.tmux/plugins/tpm/tpm'
set -g message-style "bg=#00346e, fg=#ffffd7" # tomorrow night blue, base3
set -g status-style "bg=#00346e, fg=#ffffd7" # tomorrow night blue, base3
set -g status-left "#[bg=#0087ff] ❐ #S " # blue
set -g status-left-length 400
set -g status-right '#[bg=red] %a %h-%d %H:%M'
set -g status-right-length 600
set -wg window-status-format " #I #W "
set -wg window-status-current-format " #I #W "
set -wg window-status-separator ""
set -wg window-status-current-style "bg=red" # red
# set -wg window-status-last-style "fg=red"
set -g mouse on
# wsl
# bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "/mnt/c/Windows/System32/clip.exe"\; display-message "Copyed"
# mac os
# set-option -g default-command "reattach-to-user-namespace -l zsh"
#
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe 'reattach-to-user-namespace pbcopy' \; display-message "Copyed"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
run '~/.tmux/plugins/tpm/tpm'
# border colours
set -g message-style "bg=#00346e, fg=#ffffd7" # tomorrow night blue, base3
set -g status-style "bg=#00346e, fg=#ffffd7" # tomorrow night blue, base3
set -g status-left "#[bg=#0087ff] ❐ #S " # blue
set -g status-left-length 400
set -g status-right '#[bg=red] %a %h-%d %H:%M'
set -g status-right-length 600
set -wg window-status-format " #I #W "
set -wg window-status-current-format " #I #W "
set -wg window-status-separator ""
set -wg window-status-current-style "bg=red" # red
set -wg window-status-last-style "fg=red"
set -g mouse on
@dereknex
Copy link
Author

dereknex commented Feb 9, 2018

install tpm: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment