72 lines
2.3 KiB
Bash
72 lines
2.3 KiB
Bash
# DIRECTORIES
|
|
alias sites='cd /Users/shawnborton/Sites'
|
|
alias Sites='cd /Users/shawnborton/Sites'
|
|
alias kboxsites='cd /Users/shawnborton/Kalabox'
|
|
alias ..="cd .."
|
|
alias ...="cd ../.."
|
|
alias h="cd ~"
|
|
alias back="cd -"
|
|
alias finder='open -a 'Finder' .'
|
|
alias ll='ls -l'
|
|
alias lla='ls -la'
|
|
|
|
# FOR CHROME
|
|
alias chrome='open -a "Google Chrome"'
|
|
alias chrome-remote='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222'
|
|
|
|
# PHP
|
|
alias php56='/Applications/XAMPP/bin/php'
|
|
alias php7='$(brew --prefix homebrew/php/php71)/bin/php'
|
|
alias drucc='drush cc'
|
|
alias drucca='drush cc all'
|
|
#alias drupal='$(brew --prefix homebrew/php/php71)/bin/php /usr/local/bin/drupal'
|
|
alias update-global-composer='cd ~/.composer && composer update'
|
|
alias composer-update-global='update-global-composer'
|
|
alias d8check='composer update --dry-run'
|
|
alias termcc="terminus env:clear-cache"
|
|
|
|
# PATH SHENANIGANS
|
|
export XAMPP_PHP=/Applications/XAMPP/bin
|
|
export DRUSH_PHP='/Applications/XAMPP/bin/php'
|
|
#export DRUSH_PHP='/usr/local/bin/php'
|
|
#export PATH=$PATH:$XAMPP_PHP:./node_modules/.bin:$HOME/.composer/vendor/bin
|
|
#export PATH=$XAMPP_PHP:$(brew --prefix homebrew/php/php71)/bin:$PATH:./node_modules/.bin:$HOME/.composer/vendor/bin
|
|
export PATH=$(brew --prefix homebrew/php/php71)/bin:$PATH:$XAMPP_PHP:./node_modules/.bin:$HOME/.composer/vendor/bin
|
|
#export PATH=$XAMPP_PHP:$PATH:./node_modules/.bin:$HOME/.composer/vendor/bin
|
|
#export PATH=$XAMPP_PHP:/usr/local/bin:$PATH:./node_modules/.bin:$HOME/.composer/vendor/bin
|
|
source "$HOME/.console/console.rc" 2>/dev/null
|
|
|
|
###############
|
|
#
|
|
# Git Aliases
|
|
#
|
|
###############
|
|
alias ga='git add'
|
|
alias gb='git branch'
|
|
alias gs='git status'
|
|
alias kga='kbox git add'
|
|
alias gpshom='git push origin master'
|
|
alias gpllom='git pull origin master'
|
|
alias kgb='kbox git branch'
|
|
alias kgs='kbox git status'
|
|
|
|
alias dotconfig='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
|
|
|
|
# MISCELLANEOUS
|
|
export NVM_DIR="/Users/shawnborton/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
# include .job_aliases if it exists
|
|
if [ -f $HOME/.job_aliases ]; then
|
|
. $HOME/.job_aliases
|
|
fi
|
|
|
|
parse_git_branch() {
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
|
}
|
|
|
|
flushdns() {
|
|
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say DNS cache flushed
|
|
}
|
|
|
|
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
|