- Create new file and name
.my_custom_commands.sh
- Add some functions e.g
function ios() {
open -a "Xcode" ~/Documents/iOS/MyiOSProject.xcodeproj
}
function restartSoundCard() {
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`
}
- Move file to directory where zsh is located. Usually it is /Users/your-user-name
- Open .zshrc file.
- Paste:
source ~/.my_custom_commands.sh
- Save and restart iTerm.
Open iTerm and execute: ios