Showing posts with label alias. Show all posts
Showing posts with label alias. Show all posts

Wednesday, May 14, 2008

Typing Error Correction at Command Line

Open your Bash Resource Config file

$ vim ~/.bashrc

...
alias vmi='vim'
alias mvi='vim'
...
$ mvi ~/.bashrc
will open .bashrc

Friday, April 4, 2008

Prevent Yourself from Disaster

Edit your .bashrc file
$ vi ~/.bashrc

# prevent overwriting to existing file, while using redirection
set -o noclobber

# useful aliases
alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'