fish: move bindings to config.fish
This commit is contained in:
parent
9109b19854
commit
1ffb952480
@ -38,6 +38,20 @@ if status --is-interactive
|
||||
set -g __fish_git_prompt_color_stashstate cyan
|
||||
set -g __fish_git_prompt_color_untrackedfiles cyan
|
||||
set -g __fish_git_prompt_color_upstream yellow
|
||||
|
||||
# Bindings
|
||||
bind \cb battery
|
||||
bind \cq fkill
|
||||
bind \cp __fzf_files
|
||||
bind \cg __fzf_git_log
|
||||
bind \cr __fzf_history
|
||||
|
||||
# By default, Ctrl+L clears the screen
|
||||
# Add binding Ctrl+Alt+L to clear screen AND scrollback buffer
|
||||
bind \e\f 'clear; commandline -f repaint'
|
||||
|
||||
# Expand '...' to '../..'
|
||||
bind . expand_dots
|
||||
end
|
||||
|
||||
if not set -q __universals_initialized
|
||||
|
@ -12,6 +12,5 @@ function battery --description "Print battery status"
|
||||
end
|
||||
|
||||
# Repaint is needed since there is a keybinding for this function
|
||||
# See fish_user_key_bindings.fish
|
||||
commandline -f repaint
|
||||
end
|
||||
|
@ -1,16 +0,0 @@
|
||||
function fish_user_key_bindings
|
||||
bind \cb battery
|
||||
bind \cq fkill
|
||||
|
||||
# By default, Ctrl+L clears the screen
|
||||
# Add binding Ctrl+Alt+L to clear screen AND scrollback buffer
|
||||
bind \e\f 'clear; commandline -f repaint'
|
||||
|
||||
# Bindings for fzf
|
||||
bind \cp __fzf_files
|
||||
bind \cg __fzf_git_log
|
||||
bind \cr __fzf_history
|
||||
|
||||
# Expand '...' to '../..'
|
||||
bind . expand_dots
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user