This commit is contained in:
Roland Thomas
2023-02-08 12:56:21 -05:00
parent 94dafc1368
commit 275d157702
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,3 @@
function fish_greeting
colorscript -e roshar
end

View File

@ -0,0 +1,10 @@
function fish_user_key_bindings
# Execute this once per mode that emacs bindings should be used in
fish_default_key_bindings -M insert
# Then execute the vi-bindings so they take precedence when there's a conflict.
# Without --no-erase fish_vi_key_bindings will default to
# resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert
end

View File

@ -0,0 +1,8 @@
function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo."
if test "$argv" = !!
echo sudo $history[1]
eval command sudo $history[1]
else
command sudo $argv
end
end