Skip to content

Instantly share code, notes, and snippets.

@omega-takai
Created February 12, 2024 09:38
Show Gist options
  • Save omega-takai/eedc70780543714d301df1fbf9ef8863 to your computer and use it in GitHub Desktop.
Save omega-takai/eedc70780543714d301df1fbf9ef8863 to your computer and use it in GitHub Desktop.
alias
# alias GitHub
alias ghb='hub browse $(ghq list | peco | cut -d "/" -f 2,3)'
alias ghp='gh pr list'
# alias git
alias gst='git status'
alias gb='git branch -vv'
alias gba='git branch -a'
alias gbd='git branch -D'
alias gf='hub sync'
alias gc='git checkout'
alias gco='git checkout'
alias co='git switch'
alias gs='git switch'
alias gcp='git cherry-pick'
alias makepr='git commit --allow-empty -m "make pull request"'
alias ghcd='cd $(ghq root)/$(ghq list | peco)'
alias ghqcd='cd $(ghq root)/$(ghq list | peco)'
# other
alias tree='tree -a -I "\.DS_Store|\.git|node_modules" -N --dirsfirst'
alias fs='stat -f "%z bytes"'
alias brewfresh='brew update && brew upgrade && brew upgrade --cask && brew cleanup && brew doctor'
alias ll='ls -la'
# reload config
alias src='source ~/.zshrc'
@omega-takai
Copy link
Author

find . -name ".DS_Store" -type f -delete

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