Skip to content

Instantly share code, notes, and snippets.

@adriannier
Created June 15, 2020 17:25
Show Gist options
  • Save adriannier/758e2ad10c6e89dca66585cf11e16b38 to your computer and use it in GitHub Desktop.
Save adriannier/758e2ad10c6e89dca66585cf11e16b38 to your computer and use it in GitHub Desktop.
function git() {
if [[ $@ == "init" ]]; then
# Create new repositories with a **main** branch by default
command git init && git checkout -b main
else
# Perform default git command
command git "$@"
fi
}
# Prefer native Apple formats when downloading with youtube-dl
alias youtube-mp4="youtube-dl -i -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment