Skip to content

Instantly share code, notes, and snippets.

@victorcolina22
Created June 22, 2025 04:37
Show Gist options
  • Select an option

  • Save victorcolina22/5dbdfd7b51eb99f35d62cb6dcb2e2374 to your computer and use it in GitHub Desktop.

Select an option

Save victorcolina22/5dbdfd7b51eb99f35d62cb6dcb2e2374 to your computer and use it in GitHub Desktop.

Add custom commands for iTerm + ZSH.

  1. Create new file and name .my_custom_commands.sh
  2. 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}'`
}
  1. Move file to directory where zsh is located. Usually it is /Users/your-user-name
  2. Open .zshrc file.
  3. Paste: source ~/.my_custom_commands.sh
  4. Save and restart iTerm.

Open iTerm and execute: ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment