Created
April 17, 2019 14:21
-
-
Save mpautasso/ca3fe3fd129e5afc154cd08d34b1b91b to your computer and use it in GitHub Desktop.
This file contains 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
# ~/.oh-my-zsh/custom/mauricio.plugin.zsh | |
########## My alias ########## | |
# up 'n' folders | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
# cp | |
alias cp='cp -i' | |
# rm | |
alias rm='rm -i' | |
# mv | |
alias mv='mv -i' | |
# ls | |
alias ls='ls -G' | |
alias ll='ls -alF' | |
alias la='ls -lahG' | |
alias l='ls -CF' | |
# git | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff' | |
alias gds='git diff --staged' | |
alias gc='git commit' | |
alias gca='git commit -a' | |
alias gco='git checkout' | |
alias gb='git branch' | |
alias gs='git status' | |
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" | |
alias changelog='git log `git log -1 --format=%H -- CHANGELOG*`..; cat CHANGELOG*' | |
# eslint | |
alias my-eslint='git diff-index --name-only HEAD | grep -E "(.*)\.(jsx|js)" | xargs node_modules/eslint/bin/eslint.js -c .eslintrc' | |
# make my life easier | |
alias lc='wc -l' | |
alias fc='find -type f | wc -l' | |
alias psg='ps aux | grep -v grep | grep' | |
# misc | |
alias reload='. ~/.zshrc' | |
# grep with color | |
alias grep='grep --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment