Creating aliases for iTerm 2 that work during ssh
If you use oh-my-zsh, you will want to place those in ~/.zshrc
vi ~/.zshrc
.
.
.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias work="cd ~/Lucas/local-sites/"
Have you tried creating a .bashrc
file with these aliases?
It should be created in your home folder ~/.bashrc