diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..77d47df --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,46 @@ +# Set true color +set-option -sa terminal-overrides ",xterm*:Tc" + +# Mouse +set -g mouse on + +# Set prefix +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix + +# Renumber windows/panes +set -g base-index 1 +set -g pane-base-index 1 +set-window-option -g pane-base-index 1 +set-option -g renumber-windows on + +# Optn panes in current directory +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" + +# Vim-like pane switching +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin "janoamaral/tokyo-night-tmux" + +# Theme +set -g status-position top + +set -g @tokyo-night-tmux_window_id_style fsquare +set -g @tokyo-night-tmux_pane_id_style hsquare +set -g @tokyo-night-tmux_zoom_id_style dsquare +set -g @tokyo-night-tmux_show_datetime 0 +set -g @tokyo-night-tmux_date_format MYD +set -g @tokyo-night-tmux_time_format 12H +set -g @tokyo-night-tmux_show_path 1 +set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full' + +run '~/.tmux/plugins/tpm/tpm'