I really enjoy using conditions in one-liners with shell:
# if file exists, source it
[ -f $HOME/.env-local ] && source $HOME/.env-local
# if directory doesn't exist, create it
[ -d ./test ] || mkdir ./test
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.