Tmux, zsh!
This commit is contained in:
parent
c4fdb14976
commit
910e0cecbd
2 changed files with 41 additions and 3 deletions
|
@ -1,13 +1,39 @@
|
||||||
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
||||||
unbind r
|
unbind r
|
||||||
bind r source-file ~/.config/tmux/tmux.conf
|
bind r source-file ~/.config/tmux/tmux.conf
|
||||||
unbind C-b
|
|
||||||
unbind C-t
|
unbind C-t
|
||||||
|
unbind C-b
|
||||||
set -g prefix C-t
|
set -g prefix C-t
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
set -g @cursor-style 'bar'
|
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
|
||||||
|
|
||||||
|
# set -g @cursor-style 'bar'
|
||||||
|
# set -ga terminal-overrides ',*:Ss=\E[2 q:Se=\E[2 q'
|
||||||
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
|
||||||
|
set -g @vim_navigator_mapping_left "C-Left"
|
||||||
|
set -g @vim_navigator_mapping_right "C-Right"
|
||||||
|
set -g @vim_navigator_mapping_up "C-Up"
|
||||||
|
set -g @vim_navigator_mapping_down "C-Down"
|
||||||
|
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||||
|
|
||||||
|
bind v split-window -v
|
||||||
|
bind h split-window -h
|
||||||
|
|
||||||
|
# bind -n S-Left previous-window
|
||||||
|
# bind -n S-Right next-window
|
||||||
|
|
||||||
run '/usr/share/tmux-plugin-manager/tpm'
|
run '/usr/share/tmux-plugin-manager/tpm'
|
||||||
|
|
14
.zshrc
14
.zshrc
|
@ -142,5 +142,17 @@ function y() {
|
||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
}
|
}
|
||||||
. /opt/asdf-vm/asdf.sh
|
. /opt/asdf-vm/asdf.sh
|
||||||
echo -ne '\e[6 q' # Caret/vertical bar cursor style
|
# echo -ne '\e[6 q' # Caret/vertical bar cursor style
|
||||||
|
print -n '\033[5 q'
|
||||||
|
function zle-keymap-select zle-line-init zle-line-finish
|
||||||
|
{
|
||||||
|
case $KEYMAP in
|
||||||
|
vicmd) print -n '\033[1 q';; # block cursor
|
||||||
|
viins|main) print -n '\033[5 q';; # line cursor
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
zle -N zle-line-init
|
||||||
|
zle -N zle-line-finish
|
||||||
|
zle -N zle-keymap-select
|
||||||
# eval "$(starship init zsh)"
|
# eval "$(starship init zsh)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue