Home > bash > My .bashrc settings

My .bashrc settings

After installing Ubuntu, it’s a good idea to customize your .bashrc file a bit. Just append your modifications to the end of the default file that is located at ~/.bashrc.

Here is my basic extension:

#############################################################################
# Jabba's extension
#############################################################################
umask 077

EDITOR=/usr/bin/vim
export EDITOR

alias md='mkdir'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias d='ls -al'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias run='chmod u+x'
alias cpc='CWD_LAC="`pwd`"'
alias cdc='cd "$CWD_LAC"'
alias rid='chmod 644'
alias ridd='chmod 755'
alias gq='gqview &'
alias tailf='tail -f'
alias cls='clear'
alias nh='nautilus . 2>/dev/null'
alias gt='gthumb &'
alias p='cls; python'
alias th='echo "cls; cd `pwd`"'
alias kr='krusader &'
alias kill9='kill -9'

/usr/games/fortune | /usr/games/cowthink

For the last line to work you will have to install two extra packages:

sudo apt-get install fortune-mod cowsay

Then every time you open a terminal, a cute cow will be waiting for you with some wise stuff.

Categories: bash Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: