mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(tmux): change some settings
This commit is contained in:
16
tmux.conf
16
tmux.conf
@@ -6,6 +6,7 @@ set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{25
|
|||||||
|
|
||||||
# Base index for windows
|
# Base index for windows
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
# Automatically rename windows when their program exits
|
# Automatically rename windows when their program exits
|
||||||
set -g automatic-rename on
|
set -g automatic-rename on
|
||||||
@@ -34,6 +35,8 @@ set-option -g history-limit 50000
|
|||||||
|
|
||||||
# Act like vim
|
# Act like vim
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
set -g status-keys vi
|
||||||
|
set -sg escape-time 0
|
||||||
|
|
||||||
# Renumber windows sequentially after closing any of them
|
# Renumber windows sequentially after closing any of them
|
||||||
set -g renumber-windows on
|
set -g renumber-windows on
|
||||||
@@ -77,7 +80,17 @@ bind r source-file ~/.tmux.conf\; display "Reloaded!"
|
|||||||
# Swap Window to Position 1
|
# Swap Window to Position 1
|
||||||
bind-key T swap-window -t 1
|
bind-key T swap-window -t 1
|
||||||
|
|
||||||
|
# Return to last session
|
||||||
|
bind R switch-client -l
|
||||||
|
|
||||||
|
# Remove Confirm Step When Killing a Window or Pane
|
||||||
|
bind-key & kill-window
|
||||||
|
bind-key x kill-pane
|
||||||
|
|
||||||
|
# Lazygit
|
||||||
bind G new-window -c "#{pane_current_path}" -n "" lazygit
|
bind G new-window -c "#{pane_current_path}" -n "" lazygit
|
||||||
|
|
||||||
|
# Run Neovim Telescope find files
|
||||||
bind F run-shell "nvr-tmux --remote-send '<ESC>:Telescope find_files<CR>'"
|
bind F run-shell "nvr-tmux --remote-send '<ESC>:Telescope find_files<CR>'"
|
||||||
|
|
||||||
# Open cht.sh
|
# Open cht.sh
|
||||||
@@ -120,6 +133,9 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R
|
|||||||
|
|
||||||
# ========= Plugins =========
|
# ========= Plugins =========
|
||||||
|
|
||||||
|
set -g @now-playing-scrollable-threshold 60
|
||||||
|
set -g @now-playing-status-format "#[fg=cyan]ﱘ #[fg=white]{title} #[fg=cyan,nobold]#[fg=blue] #[fg=white]{artist}"
|
||||||
|
|
||||||
# prefix + I to install, prefix + U to update
|
# prefix + I to install, prefix + U to update
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||||
|
|||||||
Reference in New Issue
Block a user