Created
December 12, 2021 07:40
-
-
Save souvikhaldar/132a2d45ff03b9fb0d3fe3a1534b6ecf to your computer and use it in GitHub Desktop.
tmux.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin "arcticicestudio/nord-tmux" | |
set -g @plugin 'swaroopch/tmux-pomodoro' | |
# force Vi mode | |
# really you should export VISUAL or EDITOR environment variable, see manual | |
set -g status-keys vi | |
set -g mode-keys vi | |
# set-window-option -g mode-keys vi | |
# Use v to trigger selection | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
# Use y to yank current selection | |
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel | |
# enable mouse | |
set -g mouse on | |
set-window-option -g mode-keys vi | |
tmux_conf_copy_to_os_clipboard=true | |
# my custom prefix | |
set-option -g prefix C-Space | |
unbind C-Space | |
bind C-Space send-prefix | |
# move status line to top | |
set -g status-position top | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# Status right | |
set -g status-right ' %a %h-%d %H:%M ' | |
# open new split, window in current path | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}"'"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment