chore: Update config after a long time
This commit is contained in:
parent
a9336facf0
commit
4e0b35e4c7
37 changed files with 1145 additions and 98 deletions
20
.config/fish/conf.d/plugin-bang-bang.fish
Normal file
20
.config/fish/conf.d/plugin-bang-bang.fish
Normal file
|
@ -0,0 +1,20 @@
|
|||
function _plugin-bang-bang_key_bindings --on-variable fish_key_bindings
|
||||
bind --erase --all !
|
||||
bind --erase --all '$'
|
||||
switch "$fish_key_bindings"
|
||||
case 'fish_default_key_bindings'
|
||||
bind --mode default ! __history_previous_command
|
||||
bind --mode default '$' __history_previous_command_arguments
|
||||
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
|
||||
bind --mode insert ! __history_previous_command
|
||||
bind --mode insert '$' __history_previous_command_arguments
|
||||
end
|
||||
end
|
||||
|
||||
function _plugin-bang-bang_uninstall --on-event plugin-bang-bang_uninstall
|
||||
bind --erase --all !
|
||||
bind --erase --all '$'
|
||||
functions --erase _plugin-bang-bang_uninstall
|
||||
end
|
||||
|
||||
_plugin-bang-bang_key_bindings
|
Loading…
Add table
Add a link
Reference in a new issue