mirror of
https://github.com/bvanroll/older-dotfiles.git
synced 2025-09-01 21:42:39 +00:00
kdenk dak het gedaan heb
This commit is contained in:
20
fish/config.fish
Normal file
20
fish/config.fish
Normal file
@@ -0,0 +1,20 @@
|
||||
# Add this to your ~/.config/fish/config.fish
|
||||
# Syntax:
|
||||
# To just rerun your last command, simply type '!!'
|
||||
# '!! sudo' will prepend sudo to your most recent command
|
||||
# Running !! with anything other than sudo will append the argument to your most recent command
|
||||
# To add another command to prepend list remove the # on line 10 and put the command in the quotes. Repeat as needed
|
||||
function !!;
|
||||
set var (history | head -n 1)
|
||||
if test $argv
|
||||
if test $argv = "sudo" #; or "any other command you want to prepend"
|
||||
eval $argv $var
|
||||
else
|
||||
eval $var $argv
|
||||
end
|
||||
else
|
||||
eval $var
|
||||
end
|
||||
end
|
||||
|
||||
kitty + complete setup fish | source
|
Reference in New Issue
Block a user