Created
January 30, 2014 15:44
-
-
Save mickaelandrieu/8711391 to your computer and use it in GitHub Desktop.
From @lyrixx github
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
## Common bash function | |
alias sudo="sudo " # Hack, for sudo an aliases | |
alias ls="ls --color" | |
alias l="ls -lh --color" | |
alias ll="ls -lh --color" | |
alias lla="ll -a --color" | |
alias df="df -h" | |
alias du="du -h" | |
alias free="free -m" | |
alias cp="cp -i" | |
alias mv="mv -i" | |
alias grep='grep --exclude-dir ".svn" --exclude-dir ".git" --exclude tagsi --color=tty' | |
alias ack="ack-grep" | |
alias sed="sed --follow-symlinks" | |
## Apt | |
alias agi="apt-get install" | |
alias agua="apt-get update" | |
alias agup="apt-get upgrade" | |
alias aguap="apt-get update && apt-get upgrade" | |
alias adel=" apt-get remove" | |
alias asearch="apt-cache search" | |
## Archive | |
alias untar="tar xvf" | |
alias ungz="gunzip" | |
alias unzip2="bzip2 -d" | |
alias untargz="tar zxvf" | |
alias untarbz1="tar jxvf" | |
alias ungz2="bunzip2 -k" | |
## Cool shortcut | |
alias top_process="ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10" | |
alias mysql="mysql --sigint-ignore" | |
alias whatsmyip="curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'" | |
alias reload_bash="source ~/.bashrc" # reload ~/.bashrc | |
alias p="cd ~/Projects" | |
alias s="/home/mickaelandrieu/Logiciels/SublimeText2/sublime_text" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment