Created
July 8, 2013 18:11
-
-
Save CashWilliams/5951093 to your computer and use it in GitHub Desktop.
bashrc
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
# set a really simple PS1 | |
# will likly get overridden below | |
PS1='\[\e[1;31m\]\w\[\e[m\]\n\$ ' | |
# inclue megalodon stuff | |
if [ -f ~/.megalodon.profile ] ; then | |
source ~/.megalodon.profile | |
fi | |
# Load RVM into a shell session *as a function* | |
export rvm_path=~/.rvm | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
PATH=~/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:$PATH | |
# Add RVM to PATH for scripting | |
PATH=$PATH:~/.rvm/bin | |
#include drush integration | |
if [ -f ~/.drush_bashrc ] ; then | |
source ~/.drush_bashrc | |
fi | |
# add git and drush status to PS1 | |
if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then | |
. /usr/local/etc/bash_completion.d/git-prompt.sh | |
fi | |
export GIT_PS1_SHOWDIRTYSTATE=true | |
if [ "\$(type -t __git_ps1)" ]; then | |
PS1='\[\e[1;31m\]\w\[\e[m\]\[\e[0;32m\]\n$(__git_ps1 "(%s)")\[\e[m\]\$ ' | |
#PS1='\[\e[0;32m\]$(__git_ps1 " (%s)")\[\e[m\]\$ ' | |
fi | |
if [ "\$(type -t __git_ps1)" ] && [ "\$(type -t __drush_ps1)" ]; then | |
PS1='\[\e[1;31m\]\w\[\e[m\]\[\e[0;32m\]\n$(__git_ps1 "(%s)")\[\e[m\] \[\e[1;34m\]$(__drush_ps1 "[%s]")\[\e[m\]\$ ' | |
#PS1='\[\e[0;32m\]$(__git_ps1 " (%s)")\[\e[m\] \[\e[1;34m\]$(__drush_ps1 "[%s]")\[\e[m\]\$ ' | |
fi | |
# Configure iTerm colors | |
export CLICOLOR=1 | |
alias gen_ctags='/usr/local/bin/ctags --langmap=php:.engine.inc.module.theme.php.install.test.profile --php-kinds=cdfi --languages=php --recurse --exclude="\.git" --exclude="\.svn" --exclude="\.hg" --exclude="\.bzr" --exclude="CVS" --totals=yes --tag-relative=yes --regex-PHP="/abstract\s+class\s+([^ ]+)/\1/c/" --regex-PHP="/interface\s+([^ ]+)/\1/c/" --regex-PHP="/(public\s+|static\s+|abstract\s+|protected\s+|private\s+)function\s+\&?\s*([^ (]+)/\2/f/"' | |
# alias growldone='growlnotify -p 1 -s -m "Terminal command complete"' | |
PHP_PATH="$(brew --prefix php53)/bin" | |
export PATH=$PHP_PATH:$PATH | |
alias codercs='phpcs -p --standard=Drupal --extensions=php,module,inc,install,test,profile,theme' | |
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
## | |
# Your previous /Users/cash/.profile file was backed up as /Users/cash/.profile.macports-saved_2013-04-09_at_09:54:46 | |
## | |
# MacPorts Installer addition on 2013-04-09_at_09:54:46: 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. | |
# set PATH so it includes Support-Tools bin | |
if [ -d "/Users/cash/Src/Support-Tools/bin" ] ; then | |
export PATH="/Users/cash/Src/Support-Tools/bin:$PATH" | |
fi | |
# set bastion function to use | |
function bastion { mywik ; } | |
# set ahtools autocomplete | |
complete -W '$(/Users/cash/Src/Support-Tools/aht --autocomplete)' aht | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment