Skip to content

Instantly share code, notes, and snippets.

@loadedsith
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loadedsith/a5d628856208cb5b7e3b to your computer and use it in GitHub Desktop.
Save loadedsith/a5d628856208cb5b7e3b to your computer and use it in GitHub Desktop.
my .bash_profile
alias c=clear
function gulp() { clear; /Users/grahamh/npm/bin/gulp "$@" ;}
#alias mate='open -a TextMate.app'
export NVM_DIR="/Users/grahamh/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export PATH=/Users/grahamh/.npm/bin:$PATH
export PATH=/Users/grahamh/npm/bin:$PATH
export EDITOR=`which mate`
# export EDITOR="$HOME/bin/mate -w"
##
# Your previous /Users/grahamh/.bash_profile file was backed up as /Users/grahamh/.bash_profile.macports-saved_2013-07-05_at_10:47:10
##
# MacPorts Installer addition on 2013-07-05_at_10:47:10: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export ANDROID_HOME=~/bin/android-sdk-macosx/
export ANDROID_SDK=~/bin/android-sdk-macosx/
export PATH=/Users/grahamh/bin/Sencha/Cmd/4.0.0.203:$PATH
export SENCHA_CMD_3_0_0="/Users/grahamh/bin/Sencha/Cmd/4.0.0.203"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [ "$TERM" != "dumb" ]; then
export LS_OPTIONS='-G'
# eval `dircolors ~/.dir_colors`
fi
# Terminal colours (after installing GNU coreutils)
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
SI="\[\033[0;33m\]" #this is for the current directory
black="\[\033[0;30m\]"
darkGray="\[\033[1;30m\]"
blue="\[\033[0;34m\]"
lightBlue="\[\033[1;34m\]"
green="\[\033[0;32m\]"
lightGreen="\[\033[1;32m\]"
cyan="\[\033[0;36m\]"
lightCyan="\[\033[1;36m\]"
red="\[\033[0;31m\]"
lightRed="\[\033[1;31m\]"
purple="\[\033[0;35m\]"
lightPurple="\[\033[1;35m\]"
brown="\[\033[0;33m\]"
yellow="\[\033[1;33m\]"
lightGray="\[\033[0;37m\]"
white="\[\033[1;37m\]"
IN="\[\033[0m\]"
bold="\[\e[1m\]"
underline=`tput smul`
nounderline=`tput rmul`
bold=`tput bold`
normal=`tput sgr0`
color="\[\e[1m\]"
# 1 2 3 4 5 6 7 8
#12345678901234567890123456789012345678901234567890123456789012345678901234567890
# export PS1="\n \\\// \n -(o o)- \n========================oOO==(_)==OOo===========================================\n\n################################################################################${underline}${nounderline}\n\h:\u \[\e[1m\]\W\[\e[0m\]\$ "
# export PS1="\n=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${red}#${white}=-=${green}#${white}=-=${lightGray}\n${underline}${nounderline}\n\h:\u ${lightRed}\W${lightGray}\$ ${lightGray}"
export PS2="\[\e[1m\]> \[\e[0m\]"
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
#
#
# Setup bookmarks
#
##if [ ! -f ~/.dirs ]; then # if doesn't exist, create it
## touch ~/.dirs
##fi
#
#
# end setup bookmarks
#
COWSAYLISTRAW=`cowsay -l`
# COWSAYLIST=${COWSAYLISTRAW:55:100000}
# COWSAYLIST='bud-frogs bunny cheese daemon default dragon dragon-and-cow elephant elephant-in-snake eyes flaming-sheep ghostbusters hellokitty kitty koala kosh luke-koala meow milk moofasa moose sheep skeleton small stegosaurus supermilker surgery three-eyes turkey turtle tux udder v vader-koala www'
COWSAYLIST='dragon'
# echo $COWSAYLIST
IFS=', ' read -a COWSAYARRAY <<< "$COWSAYLIST"
COWSAYARRAYLENGTH=${#COWSAYARRAY[@]}
COWSAY=${COWSAYARRAY[$((RANDOM%COWSAYARRAYLENGTH))]}
fortune -asn 234 |cowsay -f $COWSAY
echo -e $bold"Bookmarks`tput sgr0`: "$bold"save`tput sgr0` <bookmarkName>,"$bold" show`tput sgr0`, "$bold"cd "$bold"$`tput sgr0`<bookmarkName>\\033[0;33m`tput sgr0`"
file="/Users/grahamh/.dirs"
function showBookmarks(){
while read -r line
do
printf " $bold%s$normal" "$line"|sed 's/=/'`tput sgr0`' & '$bold'/g'| xargs -0 printf
done < $file
if [ ! -f ~/.dirs ]; then # if doesn't exist, create it
touch ~/.dirs
fi
printf "\n"
}
save (){
command sed "/!$/d" ~/.dirs > ~/.dirs1; \mv ~/.dirs1 ~/.dirs; echo "$@"=\"`pwd`\" >> ~/.dirs; source ~/.dirs ;
#command sed "/!$/d" ~/.dirs > ~/.dirs1; mv ~/.dirs1 ~/.dirs; echo "$@"=\\"`pwd`\\" >> ~/.dirs; source ~/.dirs ;
}
source ~/.dirs # Initialization for the above 'save' facility: source the .sdirs file
shopt -s cdable_vars # set the bash option so that no '$' is required when using the above facility
showBookmarks
cat ~/.cli-weather-forecast
# LSCOLORS=exfxcxdxbxegedabagacad
# LSCOLORS=GxFxCxDxBxegedabagaced
function horizontalRule(){
COUNTER=0
# MARKER="─"
# MARKER="├"
# MARKER="╭"
# MARKER+='╯'
DATE=`echo -e "\033[1m "$USER"\033[0m@\033[1m"$HOSTNAME"\033[0m"`' ─ '`cat ~/.cli-weather-conditions`" @ "`eval date +"%r"`' '
# DATE=`eval date +"%l:%M:%S"`
declare -i CENTER
declare -i WIDTH
declare -i COUNTER
WIDTH=`eval tput cols`
let WIDTH=WIDTH-2-${#DATE}+20
let CENTER=$WIDTH/2
while [[ $COUNTER -lt $WIDTH ]];
do
if [[ "$COUNTER" -eq "$CENTER" ]]
then
MARKER+="$DATE"
fi
let COUNTER=COUNTER+1
MARKER+='─'
done
# MARKER+='─'
# MARKER+='╮'
# MARKER+='─╯'
# MARKER+='┤'
echo $MARKER
}
alias hr='horizontalRule'
# export PS1='\n`horizontalRule`'"${underline}${nounderline}\n│${lightCyan}\W${IN} \$ ${lightGray}"
source ~/.git-prompt.sh
export PS1='\n`horizontalRule`'"${underline}${nounderline}\n${lightCyan}\W${IN}"'$(__git_ps1)'" \$ ${lightGray}"
# export PS1='`cat ~/.cli-weather-forecast`\n`horizontalRule`'"${underline}${nounderline}\n\h:\u ${lightCyan}\W${IN} \$ ${lightGray}"
export PATH=/usr/local/opt/openssl/bin:$PATH
alias show='showBookmarks'
alias bookmarks='showBookmarks'
alias ls='ls $LS_OPTIONS'
alias back='cd -'
alias ll='ls $LS_OPTIONS -hl'
alias la='ls $LS_OPTIONS -a'
alias lla='ls $LS_OPTIONS -lah'
alias cd..="cd .."
alias ..="cd .."
alias ..="cd .."
export CDPATH=~/Documents/Sites/:$CDPATH
export PATH=/usr/local/bin:$PATH
export PATH=~/bin:$PATH
BREW_PREFIX=`brew --prefix`
export PATH=$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$PATH
export PYTHONPATH=$BREW_PREFIX/lib/python2.7/site-packages:$PYTHONPATH
export PATH=/Users/grahamh/npm/lib/node_modules/grunt-cli/bin:$PATH
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
#source "`brew --prefix`/etc/grc.bashrc"
#check if grunt is installed, if it is, set it to execute in bash mode, return nothing otherwise
if [ -z ${grunt+x} ]; then return; else eval "$(grunt --completion=bash)"; fi
export PATH="/usr/local/bin/gem:$PATH"
export PATH="/Users/grahamh/Documents/adt-bundle-mac-x86_64-20131030/sdk/tools:$PATH"
export PATH="/usr/local/Cellar/ruby/2.0.0-p353/bin:$PATH"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
nvm alias default stable
source ~/.profile
# source /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
@loadedsith
Copy link
Author

   ________________________________________
  / There was a young lady named Rose Who  \
  | fainted whenever she chose;            |
  |                                        |
  | She did so one day                     |
  |                                        |
  | While playing croquet, But was quickly |
  | revived with a hose.                   |
  |                                        |
  \ -- Edward Gorey                        /
   ----------------------------------------
        \                    / \  //\
         \    |\___/|      /   \//  \\
              /0  0  \__  /    //  | \ \
             /     /  \/_/    //   |  \  \
             @_^_@'/   \/_   //    |   \   \
             //_^_/     \/_ //     |    \    \
          ( //) |        \///      |     \     \
        ( / /) _|_ /   )  //       |      \     _\
      ( // /) '/,_ _ _/  ( ; -.    |    _ _\.-~        .-~~~^-.
    (( / / )) ,-{        _      `-.|.-~-.           .~         `.
   (( // / ))  '/\      /                 ~-. _ .-~      .-~^-.  \
   (( /// ))      `.   {            }                   /      \  \
    (( / ))     .----~-.\        \-'                 .~         \  `. \^-.
               ///.----..>        \             _ -~             `.  ^-`  ^-_
                 ///-._ _ _ _ _ _ _}^ - - - - ~                     ~-- ,.-~
                                                                    /.-~
  Bookmarks: save <bookmarkName>, show, cd $<bookmarkName>
    sites = "/Users/grahamh/Documents/Sites"
    home = "/Users/grahamh"
    vdd = "/Users/grahamh/Documents/vdd"
    hustle = "/Users/grahamh/Documents/Sites/hustle.net"
    ilc = "/Users/grahamh/Documents/ignisLibriColloqui"
    Godiva = "/Users/grahamh/Documents/Sites/GodivaValentinesDayLandingPage"
    volvo = "/Users/grahamh/Documents/volvo-dotcom"

  44˚/50˚ ☀️ ☀️   ☀️ ⛅️   ☀️ ☀️   ☀️ ⚡️?   updated:  3:32pm

  ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ grahamh@lt-air-chi-016 59.0˚ @ 12:10:53 PM ⠀⠀⠀⠀⠀⠀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment