Wednesday, November 5, 2008

Favorite tsch Aliases

So I spend a lot of my time at work tooling around on a remote server through ssh. Here are a few of the aliases I use everyday that make my life a little simpler. Put them in your login script and save yourself some headaches!

#setup color ls
alias ls ls-F ; set color=ls-F

#ls shortcuts (cause 2 chars is better than 4!)
alias la 'ls -a'
alias ll 'ls -lg'

#vim color shortcut
alias vi 'vim -X'

#make grep ignore svn files
alias grep 'grep \!* | grep -v /\.svn/'

#remove those pesky Permission denied lines when using find
alias find 'find \!* |& grep -v /Permission denied/'

#change dir and list contents
alias cdls 'cd \!*; ls'

No comments:

Post a Comment