Last active
August 22, 2023 14:42
-
-
Save jerzabek/15072af0488e171102687ede9b72c201 to your computer and use it in GitHub Desktop.
Aliases I use in my ZSH terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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