fish: Convert abbreviations to aliases
It's annoying to see fish expand the abbreviation while you type.
This commit is contained in:
parent
8d75c7937c
commit
15d24373ac
6 changed files with 14 additions and 7 deletions
|
@ -23,11 +23,6 @@ set -g fish_color_valid_path normal
|
|||
set -g fish_color_vcs 43d696
|
||||
set -g fish_color_vcs_braces 29bc7d
|
||||
|
||||
set -g _fish_abbr_fl fossil
|
||||
set -g _fish_abbr_flc fossil changes --differ
|
||||
set -g _fish_abbr_gpg gpg2
|
||||
set -g _fish_abbr_vi vim
|
||||
|
||||
test -n "$XDG_CONFIG_HOME"
|
||||
or set -x XDG_CONFIG_HOME $HOME/.config
|
||||
test -n "$XDG_CACHE_HOME"
|
||||
|
|
3
fish/functions/fl.fish
Normal file
3
fish/functions/fl.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function fl --wraps=fossil
|
||||
command fossil $argv
|
||||
end
|
3
fish/functions/flc.fish
Normal file
3
fish/functions/flc.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function flc --wraps='fossil changes --differ'
|
||||
command fossil changes --differ $argv
|
||||
end
|
|
@ -1,3 +1,3 @@
|
|||
function fld
|
||||
fossil diff $argv -N | colordiff | less -FRX
|
||||
function fld --wraps 'fossil diff'
|
||||
command fossil diff $argv -N | colordiff | less -FRX
|
||||
end
|
||||
|
|
3
fish/functions/gpg.fish
Normal file
3
fish/functions/gpg.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function gpg --wraps=gpg2
|
||||
command gpg2 $argv
|
||||
end
|
3
fish/functions/vi.fish
Normal file
3
fish/functions/vi.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function vi --wraps=vim
|
||||
command vim $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue