r
This commit is contained in:
@@ -8,7 +8,7 @@ abbr t trash put
|
||||
# abbr m mpv
|
||||
abbr mm -- mpv --shuffle \$XDG_MUSIC_DIR
|
||||
|
||||
abbr l lazygit
|
||||
abbr lg lazygit
|
||||
# abbr dots -- git --git-dir \~/.dotfiles/ --work-tree \~
|
||||
abbr gl git log
|
||||
abbr ga git add
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
zoxide init fish | source
|
||||
@@ -14,9 +14,7 @@ function fish_right_prompt
|
||||
set -g __fish_git_prompt_showcolorhints 1
|
||||
set -g __fish_git_prompt_use_informative_chars 1
|
||||
|
||||
# Unfortunately this only works if we have a sensible locale
|
||||
string match -qi '*.utf-8' -- $LANG $LC_CTYPE $LC_ALL
|
||||
and set -g __fish_git_prompt_char_dirtystate \U1F4a9
|
||||
set -g __fish_git_prompt_char_dirtystate '!'
|
||||
set -g __fish_git_prompt_char_untrackedfiles '?'
|
||||
|
||||
set -l vcs (fish_vcs_prompt '%s' 2>/dev/null)
|
||||
@@ -28,7 +26,7 @@ function fish_right_prompt
|
||||
|
||||
# Count duration (optionally)
|
||||
if test $CMD_DURATION -gt 100 -a \
|
||||
"$__fish_right_prompt_status_generation" != $status_generation
|
||||
"$__fish_right_prompt_status_generation" != $status_generation
|
||||
set -g __fish_right_prompt_status_generation $status_generation
|
||||
|
||||
set -l secs (math -s2 $CMD_DURATION / 1000 % 60)
|
||||
|
||||
@@ -24,7 +24,7 @@ function fish_user_key_bindings
|
||||
echo (set_color brcyan)'INFO: fzf not found'
|
||||
end
|
||||
|
||||
# Unused: alt-z, insert ctrl-r
|
||||
# Unused: alt-g, alt-z, insert ctrl-r
|
||||
|
||||
bind alt-t transpose-words
|
||||
bind -M insert alt-t transpose-words
|
||||
@@ -32,9 +32,14 @@ function fish_user_key_bindings
|
||||
bind ctrl-t transpose-chars
|
||||
bind -M insert ctrl-t transpose-chars
|
||||
bind -M visual ctrl-t transpose-chars
|
||||
|
||||
bind ctrl-z 'fish_commandline_append " &; disown"'
|
||||
bind -M insert ctrl-z 'fish_commandline_append " &; disown"'
|
||||
bind -M visual ctrl-z 'fish_commandline_append " &; disown"'
|
||||
|
||||
bind ctrl-g lazygit
|
||||
bind -M insert ctrl-g lazygit
|
||||
bind -M visual ctrl-g lazygit
|
||||
|
||||
# bind -M insert ctrl-d exit
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user