I have two apps who need to be ran in different ways, but I'm so used to my bash alias to start them, so I would like to combine it
One command is ./bin/dev
, and another is bundle exec rails s
So I tried to do this, but that doesn't do what I want.
./bin/dev || bundle exec rails s
This one would start bin/dev
if available in that folder, but when I cancel (ctrl+C), it would "continue" the chain and run the 2nd command.
I only want the 2nd command to run if the first one fails. Is this possible (one-liner bash alias)