Oh My Zsh multiple commands with one alias
As you’ve discovered, you can chain commands in a single alias using ;: alias update_my_gems=”echo foo; echo bar” Alternatively, you can write a function very easily in your ~/.zshrc file: update_my_gems() { echo foo echo bar } For readability, I’d personally go for a function for anything that’s semi-complex.