Update
This commit is contained in:
3
.config/fish/functions/fish_greeting.fish
Normal file
3
.config/fish/functions/fish_greeting.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function fish_greeting
|
||||
colorscript -e roshar
|
||||
end
|
10
.config/fish/functions/fish_user_key_bindings.fish
Normal file
10
.config/fish/functions/fish_user_key_bindings.fish
Normal 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
|
8
.config/fish/functions/sudo.fish
Normal file
8
.config/fish/functions/sudo.fish
Normal 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
|
Reference in New Issue
Block a user