Skip to content

Instantly share code, notes, and snippets.

@jerzabek
Last active August 22, 2023 14:42
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 jerzabek/15072af0488e171102687ede9b72c201 to your computer and use it in GitHub Desktop.
Save jerzabek/15072af0488e171102687ede9b72c201 to your computer and use it in GitHub Desktop.
Aliases I use in my ZSH terminal
# I also use https://ohmyz.sh/ with rkj-repos theme
# Useful aliases that I use day to day
alias ls="ls -al"
alias cd..="cd .."
# Using this flag the history of reviews, comments and commits on a pull request on github is untouched after rebasing a branch
alias gitrb="git rebase -i --committer-date-is-author-date"
alias yc="yarn test --collectCoverage --watchAll"
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias rmrfnm="rm -rf node_modules"
alias ycc="yarn cache clean"
alias ys="yarn start"
alias yd="yarn dev"
alias aliases='nano ~/.zshrc'
# Customizing the prompt so it looks cool
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{green}%*%f %F{cyan}%~%f %F{red}${vcs_info_msg_0_}%f$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment