sudo !! compat for fish
This commit is contained in:
parent
c98a5f7480
commit
f202ee414b
|
@ -72,6 +72,14 @@ function fish_title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# `sudo !!` compat for fish shell
|
||||||
|
function sudo
|
||||||
|
if test "$argv" = !!
|
||||||
|
eval command sudo $history[1]
|
||||||
|
else
|
||||||
|
command sudo $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Source local system-specific config.
|
# Source local system-specific config.
|
||||||
if test -e ~/.local.fish
|
if test -e ~/.local.fish
|
||||||
|
|
|
@ -19,4 +19,8 @@ indent_size = 4
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
# format:dosini
|
# format:dosini
|
||||||
|
|
Loading…
Reference in New Issue
Block a user