Last active
October 2, 2015 16:38
-
-
Save thijzert/2277347 to your computer and use it in GitHub Desktop.
Useful bash aliases
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 IP="grep -oP '([0-9]+\.){3}[0-9]+' | grep -vP '192\.168\.[0-9]+\.[0-9]+'" | |
alias rdp="rdesktop -g 1600x1000 -a 16 -N -u Administrator -k en-us -r clipboard:PRIMARYCLIPBOARD" | |
alias bbc3='mplayer http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_q' | |
alias klara='mplayer http://mp3.streampower.be/klara-high.mp3' | |
alias radio4='mplayer http://icecast.omroep.nl/radio4-bb-mp3' | |
alias svngrep='find . \ | |
-path ".git" -prune -o -path "*.git" -prune \ | |
-o -path ".svn" -prune -o -path "*/.svn" -prune \ | |
-o -name "*.svn-base" -prune -o \ | |
-type f -print0 | xargs -0 -e grep --color=always -Ine' | |
alias less='less -RS ' | |
alias nano='vim ' | |
alias sudo='sudo ' | |
alias update-aliases='wget -O ~/.bash_aliases "https://gist.githubusercontent.com/ametheus/2277347/raw/.bash_aliases" && source ~/.bash_aliases' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment