-
-
Save cgrayson/b468762a051c1685eb49acd37042ed55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOX=`hostname -s` | |
case "$LOGNAME" in | |
"root" ) COLOR="31" # red | |
;; | |
"chris" ) COLOR="32" # green | |
;; | |
"production" ) COLOR="33" # yellow | |
;; | |
* ) COLOR="36" # cyan | |
;; | |
esac | |
if [ "$LOGNAME" != "chris" ] | |
then | |
# uppercase | |
PROMPTLOGNAME=`echo $LOGNAME | tr [a-z] [A-Z]` | |
else | |
PROMPTLOGNAME=$LOGNAME | |
fi | |
PS1='$BOX:\[\033[${COLOR}m\]$PROMPTLOGNAME \[\033[00m\]$PWD> ' | |
set -o vi | |
alias | grep -q "^alias ls=" | |
if [ $? -eq 0 ] | |
then | |
unalias ls | |
fi | |
which vim > /dev/null | |
if [ $? -eq 0 ] | |
then | |
alias vi=vim | |
export EDITOR=vim | |
export EXINIT="syntax off|set ts=4 ai sw=4 nohlsearch" | |
else | |
export EDITOR=vi | |
export EXINIT="set ts=4 ai sw=4" | |
fi | |
alias l2="ls -lF" | |
alias l="ls -CF" | |
stty erase | |
export API=/var/www/vhosts/leadconduit_api/production/current | |
export TMOUT=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment