-
-
Save iPublicis/40a484a3467d750b00f1ec823288264b to your computer and use it in GitHub Desktop.
Console aliases for .bash_aliases to include in .bashrc
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
# Alias definitions. | |
# You may want to put all your additions into a separate file like | |
# ~/.bash_aliases, instead of adding them directly in .bashrc. | |
# | |
# if [ -f ~/.bash_aliases ]; then | |
# . ~/.bash_aliases | |
# fi | |
# | |
# Reload bash with this command: . ~/.bashrc | |
# | |
### | |
# Disc Usage | |
alias du='du -h' | |
alias dus='du -hs * | sort -hr' | |
alias gus='dus' | |
### | |
# Git commands | |
alias t='tig' # ncurses-based text-mode interface for Git | |
alias gd='git diff' | |
alias gdc='git diff --cached' | |
alias gh='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' | |
alias gs='git status' | |
alias co='git checkout' | |
alias com='git commit -am ' | |
alias fix='git add . && git commit -m "fix"' | |
alias gg="git diff | grep 'print_r\|var_d'" | |
### | |
# Bleachbit | |
alias bleachsu='sudo bleachbit -c --preset -o' | |
alias bleach='bleachbit -c --preset -o' | |
### | |
# Other useful alias | |
alias cd..='cd ..' | |
alias cp='cp -i' | |
alias df='df -h -x supermount' | |
alias l='ls -lapt' | |
alias ll='ls -laptc' | |
alias lla='ls -lhAptc' | |
alias ls='ls --color=auto' | |
alias md='mkdir' | |
alias mv='mv -i' | |
alias rd='rmdir -i' | |
alias rm='rm -i' | |
alias su-='su -' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment