Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I missed it too, so I created a fish function:

``` function sudo if test "$argv" = !! eval command sudo $history[1] else command sudo $argv end end ```

This works for `sudo !!`

https://github.com/srynot4sale/dotfiles/blob/master/fish/fun...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: