I'm currently trying to write a shell function for updating my .zshrc file. I currently have an alias that is as follows
alias zshrc="vim ~/.zshrc"
I was wondering if there is any way to write a function that would wait for me to close vim then run a command after vim has closed. For reference the command I would want to run is.