News for hackers. Stuff that matters.
Re:Fish: A user-friendly command line shell for macOS, Linux... by jdlyga on Wednesday December 13, 2017 @10:21AM (#15914755)
&& is a major one. Also !! for sudo !!
Re:Fish: A user-friendly command line shell for macOS, Linux... by roryokane on Saturday December 16, 2017 @07:13PM (#15943070)
Fish's FAQ already explains why it doesn't use `!!` – it says that editing commands from history by pressing the up arrow is more memorable and flexible. I don't find it a problem to type “up Ctrl-A sudo” instead of “sudo !!”.
Re:Fish: A user-friendly command line shell for macOS, Linux... by udp on Wednesday December 13, 2017 @11:24AM (#15915204)
It would be great if Fish supported &&. I know it has its own syntax for this but it's not particularly fun going through a command you copy pasted from elsewhere and swapping out all the &&s (I usually just end up firing up bash).
Re:Fish: A user-friendly command line shell for macOS, Linux... by eu on Wednesday December 13, 2017 @10:41AM (#15914899)
Care to explain what this does? Thanks
Re:Fish: A user-friendly command line shell for macOS, Linux... by pta2002 on Wednesday December 13, 2017 @11:45AM (#15915365)
!! is the last command, so sudo !! will run the last command as root.

e.g. apt install foo # you need root permissions to install, won't work sudo !! # will expand to sudo apt install foo, and it'll work!