fugafuga.write

日々のログ

fish shell でコマンドを繋げて実行したい

andを使う

> docker stop ansible_web;and docker rm ansible_web

それまでのコマンドが失敗した場合にorが使える

> docker stop ansible_web;and docker rm ansible_web;or echo 'failed'
Error response from daemon: No such container: ansible_web
failed

(参考) http://fish.rubikitch.com/and/