This commit is contained in:
2022-01-01 18:20:27 +01:00
parent ca25d437a9
commit 77c00937ef
4 changed files with 51 additions and 2 deletions

View File

@ -1,4 +1,4 @@
function a
mkdir -p /tmp/a
cd /tmp/a
mkdir -p /tmp/a
cd /tmp/a
end

8
functions/bind_bang.fish Normal file
View File

@ -0,0 +1,8 @@
function bind_bang
switch (commandline -t)[-1]
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end

View File

@ -0,0 +1,9 @@
function bind_dollar
switch (commandline -t)[-1]
case "!"
commandline -t ""
commandline -f history-token-search-backward
case "*"
commandline -i '$'
end
end