61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
|
|
# 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\]"
|
|
|
|
export SHELL=/bin/bash
|
|
|
|
set_prompt() {
|
|
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
|
|
|
|
FAILURE_COLOR="if [[ \$? = '0' ]]; then echo \"$GREEN\"; else echo \"$RED\"; fi"
|
|
|
|
PS1="${TITLEBAR}$BLUE[\t]\`$FAILURE_COLOR\` \u@\h> $NO_COLOR"
|
|
}
|
|
|
|
# sets the PS1 prompt
|
|
set_prompt
|
|
|
|
# makes ls print pretty
|
|
#alias ls="ls --color=auto"
|
|
alias ls="ls -G"
|
|
|
|
# default editor
|
|
export EDITOR=vim
|
|
|
|
# set history
|
|
export HISTSIZE=1000
|
|
export HISTFILESIZE=1000
|
|
export HISTCONTROL=ignoredups
|
|
|
|
# disable messaging
|
|
if `tty -s`; then
|
|
mesg n
|
|
fi
|
|
|
|
# set the path for Hadoop
|
|
# export HADOOP_VERSION=hadoop-1.0.1
|
|
# export HADOOP=~/hadoop/$HADOOP_VERSION
|
|
# export PATH=$PATH:$HADOOP/bin
|
|
export JAVA_HOME=/usr
|
|
|
|
# add the rubygem location
|
|
export PATH=$PATH:/var/lib/gems/1.8/bin/
|
|
|
|
alias sshneptune="ssh ntietz@neptune.cs.kent.edu"
|
|
alias sshposeidon="ssh ntietz@poseidon.cs.kent.edu"
|
|
alias sshntietz="ssh nicholas@ntietz.com"
|
|
alias sshacm="ssh ntietz@acm.cs.kent.edu"
|
|
|