Skip to content

Instantly share code, notes, and snippets.

@clodal
Last active September 16, 2021 10:54
Show Gist options
  • Save clodal/13af31d2bb81e54333630088f697feaf to your computer and use it in GitHub Desktop.
Save clodal/13af31d2bb81e54333630088f697feaf to your computer and use it in GitHub Desktop.

My ZSH RC

plugins=(
    git
    zsh-syntax-highlighting
    zsh-autosuggestions
    zsh-z
)
alias x="clear"
alias gs="git status"
alias gpp="git push"
alias gl="git log"
alias ga="git add --all"
alias gc='git commit -m "'
alias gco='git checkout'
alias gp="git fetch && git pull"
alias gll="git log --stat --pretty=short --graph"
alias gbd="git branch -d"
alias app="amplify push -y"
alias aps="amplify status"
alias ows="open -a webstorm ."
alias oas="open -a 'Android Studio' ."
alias amp="amplify"
alias as="amplify status"
alias ampenv="amplify env list"
alias ampapi="echo 'GraphQL' | amp api console"
alias ampcog="echo 'User Pool' | amp auth console"
alias clone="open -a iterm ."
alias rn="react-native"
alias vi="vim"
alias web="cd packages/web"
alias api="cd packages/api"
alias admin="cd packages/admin"
alias ya="yarn"
alias yad="yarn dev"
alias yab="yarn build"
alias yas="yarn start"
alias yabs="yarn build; yarn start"
alias yass="yarn storybook"
alias yal="yarn lint"
alias yaj="yarn jest"
alias intel="arch -x86_64"

Sidenote: You might also want to do the following:

  1. Git branch without less: git config --global pager.branch false
  2. iTerm jump to end of line with keyboard shortcuts by selecting the Natural Text Editing preset in Profile: https://stackoverflow.com/a/22312856
  3. Install brew in M1: https://stackoverflow.com/a/67271753
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment