wrappers/fish: enable vi mode
This commit is contained in:
parent
890c6e7dec
commit
fffd77b3d1
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,10 @@
|
|||
# name: Nim
|
||||
# author: Guilhem "Nim" Saurel − https://github.com/nim65s/dotfiles/
|
||||
|
||||
# Vi-mode
|
||||
# The default mode prompt would be prefixed, which ruins our alignment.
|
||||
function fish_mode_prompt; end
|
||||
|
||||
function fish_prompt
|
||||
set -l retc red
|
||||
test $status = 0; and set retc green
|
||||
|
@ -60,11 +64,6 @@ function fish_prompt
|
|||
# Date
|
||||
_nim_prompt_wrapper $retc '' (date +%X)
|
||||
|
||||
# Vi-mode
|
||||
# The default mode prompt would be prefixed, which ruins our alignment.
|
||||
function fish_mode_prompt
|
||||
end
|
||||
|
||||
if test "$fish_key_bindings" = fish_vi_key_bindings
|
||||
or test "$fish_key_bindings" = fish_hybrid_key_bindings
|
||||
set -l mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue