Skip to content

Instantly share code, notes, and snippets.

@xavierchia
Created December 1, 2023 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xavierchia/519f6359fe1599189cdf28e3df73f1fa to your computer and use it in GitHub Desktop.
Save xavierchia/519f6359fe1599189cdf28e3df73f1fa to your computer and use it in GitHub Desktop.
Nano shortcuts
alias dd='rm -rf /Users/xavier/Library/Developer/Xcode/DerivedData/*'
alias ccb='git branch --show-current | pbcopy | echo "current branch copied to $
alias reset='git reset head~1'
alias reuse='git commit --reuse-message=orig_head | echo "commited with last me$
alias nanoz='nano ~/.zshrc'
alias xlog='git log --format="%C(auto) %h %s" -n10'
alias dab='git branch | grep -v "main" | xargs git branch -D'
alias diff='git diff --name-only --diff-filter=U --relative'
export CLICOLOR=1
export LSCOLORS=bxFxCxDxBxegedabagaced
# PROMPT='%n %1~ . '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment