Oh my zsh multiple teams with one alias

I use Oh My Zsh and wondered if there is a way to create a function or an alias to run multiple commands. As an example, running the β€œupdate” command will update certain gems, but not all of them.

+7
bash zsh customization oh-my-zsh
source share
1 answer

As you have discovered, you can chain commands in one alias using ; :

 alias update_my_gems="echo foo; echo bar" 

Alternatively, you can easily write a function in the ~/.zshrc :

 update_my_gems() { echo foo echo bar } 

For ease of reading, I personally would like to use the function for something a semi-complexor.

+18
source share

All Articles