1
0

sudo !! compat for fish

This commit is contained in:
Noah 2015-06-26 16:59:28 -07:00
parent c98a5f7480
commit f202ee414b
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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