Bash
Conditional statements
Info
The below can be used in a .zshrc
file to only run certain configuration settings based on operating system. Refer to the dotfiles repository to see how this is done.
if [ condition ]
then
echo "this when condition is met"
else
echo "this when condition is not met"
fi
Echo an argument
echo "Echo the first argument $1"