fish: added abbr.name option
This commit is contained in:
parent
3670a78eee
commit
7538d96535
2 changed files with 19 additions and 2 deletions
|
|
@ -39,13 +39,19 @@
|
|||
command = "git";
|
||||
expansion = "checkout";
|
||||
};
|
||||
s = {
|
||||
status = {
|
||||
name = "s";
|
||||
command = [
|
||||
"git"
|
||||
"hg"
|
||||
];
|
||||
expansion = "status";
|
||||
};
|
||||
show = {
|
||||
name = "s";
|
||||
command = "systemctl";
|
||||
expansion = "show";
|
||||
};
|
||||
dotdot = {
|
||||
regex = "^\\.\\.+$";
|
||||
function = "multicd";
|
||||
|
|
@ -79,6 +85,8 @@
|
|||
"abbr --add --command git -- co checkout"
|
||||
assertFileContains home-files/.config/fish/config.fish \
|
||||
"abbr --add --command git --command hg -- s status"
|
||||
assertFileContains home-files/.config/fish/config.fish \
|
||||
"abbr --add --command systemctl -- s show"
|
||||
assertFileContains home-files/.config/fish/config.fish \
|
||||
"abbr --add --function multicd --regex '^\.\.+$' -- dotdot"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue