.bashrc configuration file — Protection and nice enviroment

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
#for rvm ruby on rails only (not needed)
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

#grep in color
alias grep=’grep –color=auto’

#ls in color
alias ls=’ls –color=auto’

#shows broken symlinks in color in ls command
eval $(dircolors -b)

#create new dirs and it’s hierarhy by default
alias mkdir=’mkdir -p -v’

#protecct mv command aks if takes more than 8s
alias mv=’ timeout 8 mv -iv’

#limit rm (remove command)
alias rm=’ timeout 3 rm -Iv –one-file-system’

#protect shred by setting up limits
alias shred=’ timeout 3 shred -v’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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