added some aliases

This commit is contained in:
MatToufoutu 2010-09-28 14:14:23 +02:00
commit d30d1f3d40

View file

@ -9,15 +9,42 @@ alias -- -='cd -'
# Super user # Super user
alias _='sudo' alias _='sudo'
#alias g='grep -in' # Show line and ignore case with grep
alias g='grep -in'
# Show history # Show history
alias history='fc -l 1' alias history='fc -l 1'
# Allways use vim
[[ -x $(which vim) ]] && alias vi='vim'
# Search for processes in ps
alias psgrep='ps aux | grep -v grep | grep'
# Open a SSH tunnel listening on localhost:8888
alias tunnel='ssh -fqND 8888'
# Python stuff
alias 2to3='2to3 -x buffer'
alias pydebug='python -m pudb.run'
# IPv6 netstat version
alias netstat6='netstat -A inet6'
# Search for connections in netstat
alias netgrep='netstat -lapute -np | grep'
alias netgrep6='netstat6 -lapute -np | grep'
# Limit ping to 3 requests
alias ping='ping -c 3'
# List direcory contents # List direcory contents
alias lsa='ls -lah'
alias l='ls -la' alias l='ls -la'
alias ll='ls -l' alias ll='ls -l'
alias lh='ls -lAh'
alias sl=ls # often screw this up alias sl=ls # often screw this up
# Search directory contents
alias lsgrep='lh | grep'
alias afind='ack-grep -il' alias afind='ack-grep -il'