added tmux, butter fish config
This commit is contained in:
@@ -6,8 +6,8 @@ export XDG_CONFIG_HOME=${MB_ENV_BASE}/config
|
||||
export XDG_DATA_HOME=${MB_ENV_BASE}/local/share
|
||||
export PATH=${MB_ENV_BASE}/bin:${PATH}
|
||||
export TERM=xterm-256color
|
||||
|
||||
|
||||
export TERMINFO=${MB_ENV_BASE}/share/terminfo
|
||||
export SHELL=${MB_ENV_BASE}/bin/fish
|
||||
|
||||
|
||||
${MB_ENV_BASE}/bin/fish.sh
|
||||
|
||||
48
config_in/fish/functions/fish_mode_prompt.fish
Normal file
48
config_in/fish/functions/fish_mode_prompt.fish
Normal file
@@ -0,0 +1,48 @@
|
||||
# Display the current binding mode... if it's vi or vi-like.
|
||||
#
|
||||
# To always show the binding mode (regardless of current bindings):
|
||||
# set -g theme_display_vi yes
|
||||
#
|
||||
# To never show:
|
||||
# set -g theme_display_vi no
|
||||
|
||||
|
||||
# invisible space is inserted into prompt to play nice with tmux jumping
|
||||
# https://unix.stackexchange.com/questions/226731/jump-to-last-prompt-in-terminal-or-tmux
|
||||
set -g invisible_space " "
|
||||
|
||||
function fish_mode_prompt -d 'bobthefish-optimized fish mode indicator'
|
||||
[ "$theme_display_vi" != 'no' ]
|
||||
or return
|
||||
|
||||
[ "$fish_key_bindings" = 'fish_vi_key_bindings' \
|
||||
-o "$fish_key_bindings" = 'hybrid_bindings' \
|
||||
-o "$fish_key_bindings" = 'fish_hybrid_key_bindings' \
|
||||
-o "$theme_display_vi" = 'yes' ]
|
||||
or return
|
||||
|
||||
__bobthefish_colors $theme_color_scheme
|
||||
|
||||
type -q bobthefish_colors
|
||||
and bobthefish_colors
|
||||
|
||||
set_color normal # clear out anything bold or underline...
|
||||
|
||||
switch $fish_bind_mode
|
||||
case default
|
||||
set_color -b $color_vi_mode_default
|
||||
echo -n " N$invisible_space"
|
||||
case insert
|
||||
set_color -b $color_vi_mode_insert
|
||||
echo -n " I$invisible_space"
|
||||
case replace_one replace-one
|
||||
set_color -b $color_vi_mode_insert
|
||||
echo -n " R$invisible_space"
|
||||
case visual
|
||||
set_color -b $color_vi_mode_visual
|
||||
echo -n " V$invisible_space"
|
||||
end
|
||||
|
||||
set_color normal
|
||||
end
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
" goto normal mode with jk
|
||||
inoremap jk <ESC>
|
||||
|
||||
" remove search highlighting when pressing esc
|
||||
map <esc> :noh <CR>
|
||||
" ----------------------------- Own config ---------------------------
|
||||
|
||||
inoremap jk <ESC> " goto normal mode with jk
|
||||
map <esc> :noh <CR> " remove search highlighting when pressing esc
|
||||
set number " turn on line numbers
|
||||
|
||||
|
||||
" ----------------------------- Plugins ------------------------------
|
||||
|
||||
" --------- Plugins ----------
|
||||
call plug#begin()
|
||||
|
||||
Plug 'justinmk/vim-sneak'
|
||||
|
||||
Plug 'easymotion/vim-easymotion'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
call plug#end()
|
||||
63
config_in/tmux/tmux.conf
Normal file
63
config_in/tmux/tmux.conf
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
# history
|
||||
set -g history-limit 100000
|
||||
|
||||
# use vi mode
|
||||
setw -g mode-keys vi
|
||||
set -g status-keys vi
|
||||
|
||||
|
||||
# easy-to-remember split pane commands
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
|
||||
# moving between panes with vim movement keys
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# resize the pane
|
||||
bind-key -r J resize-pane -D 3
|
||||
bind-key -r K resize-pane -U 3
|
||||
bind-key -r H resize-pane -L 3
|
||||
bind-key -r L resize-pane -R 3
|
||||
|
||||
|
||||
set-option -g status-position top
|
||||
|
||||
|
||||
# fast search - not necessary to go to copy first (will switch to copy mode automatically)
|
||||
bind-key -T copy-mode-vi / command-prompt -i -p "(search down)" "send -X search-forward-incremental \"%%%\""
|
||||
bind-key -T copy-mode-vi ? command-prompt -i -p "(search up)" "send -X search-backward-incremental \"%%%\""
|
||||
|
||||
bind / copy-mode \; command-prompt -i -p "(search up)" "send -X search-forward-incremental \"%%%\""
|
||||
bind ? copy-mode \; command-prompt -i -p "(search down)" "send -X search-backward-incremental \"%%%\""
|
||||
|
||||
|
||||
bind -T copy-mode-vi \} {
|
||||
send-keys -X end-of-line
|
||||
send-keys -X search-forward " "
|
||||
send-keys -X end-of-line
|
||||
send-keys -X search-backward " "
|
||||
send-keys -X cursor-right
|
||||
}
|
||||
|
||||
bind -T copy-mode-vi \{ {
|
||||
send-keys -X start-of-line
|
||||
send-keys -X search-backward " "
|
||||
send-keys -X end-of-line
|
||||
send-keys -X search-backward " "
|
||||
send-keys -X cursor-right
|
||||
}
|
||||
|
||||
|
||||
# Package manager
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||
set -g @plugin "arcticicestudio/nord-tmux"
|
||||
|
||||
run "$XDG_DATA_HOME/tmux/plugins/tpm/tpm'
|
||||
Reference in New Issue
Block a user