Created
July 18, 2015 20:12
-
-
Save coopermaruyama/db094c5069176d6ae557 to your computer and use it in GitHub Desktop.
ZSH Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using redirection, run a command only if the previous command's exit code is 0, | |
command &>/dev/null && conditionalcommand | |
# example: | |
tmux has-session -t mysession &>/dev/null && echo "mysession exists!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment