2011-06-25 17:37:31 +00:00
|
|
|
|
2011-06-25 20:23:38 +00:00
|
|
|
# PS1="\[\e]0;\@ [\u@\h] [\w]\007\]\[\e[1;33m\]\@ \[\e[1;37m\][\[\e[1;35m\]\u\[\e[1;37m\]@\[\e[1;32m\]\h\[\e[1;37m\]] \[\e[1;37m\][\[\e[1;31m\]\w\[\e[1;37m\]] [\[\e[1;36m\]$(ls -l | grep "^-" | wc -l | tr -d " ") \[\e[1;34m\]files\[\e[1;37m\]] \n\[\e[1;33m\]\@ \[\e[1;37m\]$ \[\e[0m\]"
|
2011-06-25 17:37:31 +00:00
|
|
|
|
2011-11-22 02:32:50 +00:00
|
|
|
export SHELL=/bin/bash
|
|
|
|
|
2011-06-26 16:00:26 +00:00
|
|
|
set_prompt() {
|
2011-06-25 20:23:38 +00:00
|
|
|
local BLUE="\[\e[0;34m\]"
|
|
|
|
local DARK_BLUE="\[\e[1;34m\]"
|
|
|
|
local RED="\[\e[0;31m\]"
|
|
|
|
local DARK_RED="\[\e[1;31m\]"
|
|
|
|
local GREEN="\[\e[0;32m\]"
|
|
|
|
local NO_COLOR="\[\e[0m\]"
|
|
|
|
|
|
|
|
case $TERM in
|
|
|
|
xterm*|screen)
|
|
|
|
TITLEBAR='\[\e]0;\u@\h \w\007\]';
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
TITLEBAR="";
|
|
|
|
;;
|
|
|
|
esac
|
2011-06-25 17:37:31 +00:00
|
|
|
|
|
|
|
FAILURE_COLOR="if [[ \$? = '0' ]]; then echo \"$GREEN\"; else echo \"$RED\"; fi"
|
|
|
|
|
2011-06-26 01:55:40 +00:00
|
|
|
PS1="${TITLEBAR}$BLUE[\t]\`$FAILURE_COLOR\` \u@\h> $NO_COLOR"
|
2011-06-25 17:37:31 +00:00
|
|
|
}
|
|
|
|
|
2011-11-22 02:26:43 +00:00
|
|
|
# sets the PS1 prompt
|
2011-06-26 03:03:37 +00:00
|
|
|
set_prompt
|
2011-06-25 17:37:31 +00:00
|
|
|
|
2011-06-28 00:00:15 +00:00
|
|
|
# makes ls print pretty
|
|
|
|
alias ls="ls --color=auto"
|
|
|
|
|
|
|
|
# default editor
|
|
|
|
export EDITOR=vim
|
|
|
|
|
|
|
|
# set history
|
|
|
|
export HISTSIZE=1000
|
|
|
|
export HISTFILESIZE=1000
|
|
|
|
export HISTCONTROL=ignoredups
|
|
|
|
|
2011-11-22 02:26:43 +00:00
|
|
|
# disable messaging
|
|
|
|
mesg n
|
|
|
|
|
2012-01-22 00:06:19 +00:00
|
|
|
# set the path for Hadoop
|
|
|
|
export HADOOP_HOME=~/hadoop/hadoop-0.20.2/
|
|
|
|
export PATH=$PATH:$HADOOP_HOME/bin
|
|
|
|
|