Hacker News new | ask | show | jobs
by Trd 3338 days ago
apt install fish

chsh

Now you have those completions, documented and all, in all your terminals, whether it's Konsole, Gnome-Terminal, St, Terminator or the linux tty.

1 comments

Yes, I've used it in the past.

I don't use it because '&&' is not available. I use it pretty often.

Instead use:

    command1; and command2
More info: https://fishshell.com/docs/current/tutorial.html#tut_combine...
It's not the same thing.

; executes the following command even if the first one fails. && only if the previous command returns 0.

Not when used with and. And and or verify if the previous command executed. It says as much in the documentation linked by OP.

So you can do things like: runthiscommand; and echo "Success"; or echo "Failed"

> It's not the same thing.

Oh but it is! Read the link!