Subscribed unsubscribe Subscribe Subscribe

bashrc

/etcのbashrc追加分

# Add user bin
PATH="$PATH":$HOME/bin

# PS1 Settings
if [ "${USER}" == "root" ]
then
    alias PS1-='_PS1="${PS1}";PS1="+ "'
else
    alias PS1-='_PS1="${PS1}";PS1="S "'
fi
alias PS1+='PS1="${_PS1}"'

# ls Settings
alias sl='ls'

# Fxck
alias lscd='echo What are you trying to do?'

# diff Settings
alias diff='colordiff'

# less Settings
export LESS='-R'
export LESSOPEN='|/usr/share/source-highlight/src-hilite-lesspipe.sh %s'

# Java Settings
export JAVA_HOME=/path/to/java-6-openjdk

$HOMEのbashrc追加分

# Perlbrew
source $HOME/perl5/perlbrew/etc/bashrc

# Rvm
[[ -s "/home/your_name/.rvm/scripts/rvm" ]] && source "/home/your_name/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

# AWS Settings
export AWS_CREDENTIAL_FILE="$HOME/path/to/aws_credential_file"
export EC2_REGION="your_region"

# CloudWatch Settings
export AWS_CLOUDWATCH_HOME="$HOME/local/CloudWatch"
export PATH=$PATH:$AWS_CLOUDWATCH_HOME/bin

# RDS Settings
export AWS_RDS_HOME="$HOME/local/RDSCli"
export PATH=$PATH:$AWS_RDS_HOME/bin

# Hadoop Settings
export HADOOP_HOME=/usr/lib/hadoop-0.20
export HIVE_HOME=/usr/lib/hive

# Vim Key binding
set -o vi

# Prompt Setting
PS1-