|
|
@@ -203,13 +203,8 @@ if status is-interactive # Commands to run in interactive sessions can go here |
|
|
|
or true |
|
|
|
|
|
|
|
########## abbreviations ########## |
|
|
|
# cd .... file:///usr/share/doc/fish/interactive.html#abbreviations |
|
|
|
function multicd |
|
|
|
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../) |
|
|
|
end |
|
|
|
abbr --add dotdot --regex '^\.\.+$' --function multicd |
|
|
|
|
|
|
|
|
|
|
|
function trash # fixme |
|
|
|
# # Check if the command was invoked by an abbreviation |
|
|
|
# if test $argv = tt |
|
|
@@ -237,8 +232,6 @@ if status is-interactive # Commands to run in interactive sessions can go here |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# own abbreviations |
|
|
|
abbr --add e $EDITOR |
|
|
|
abbr --add cl clear |
|
|
|
abbr --position anywhere --add pp '|' |