Skip to content

Instantly share code, notes, and snippets.

@guylepage3
Created September 24, 2019 02:59
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 guylepage3/1745cbd863621616ce306d574f7a4f4f to your computer and use it in GitHub Desktop.
Save guylepage3/1745cbd863621616ce306d574f7a4f4f to your computer and use it in GitHub Desktop.
```
#Aliases
alias gst='git status'
alias gad='git add .'
alias cls='clear'
alias hd='open /'
alias home='open ~'
alias sites='open ~/sites'
alias drop='open ~/Dropbox'
alias dropbox='open ~/Dropbox'
alias apps='open /Applications'
alias applications='open /Applications'
alias spot='open -a Spotify.app'
alias spotify='open -a Spotify.app'
alias subl='open -a Sublime\ Text.app'
alias chr='open -a Google\ Chrome.app'
alias chrome='open -a Google\ Chrome.app'
alias bra='open -a Brave\ Browser.app'
alias brave='open -a Brave\ Browser.app'
alias sla='open -a Slack.app'
alias slack='open -a Slack.app'
alias mess='open -a Messages.app'
alias messages='open -a Messages.app'
alias sketch='open -a Sketch.app'
alias framer='open -a Framer\ X.app'
alias trashfix='sudo rm -rf ~/.Trash'
# Scripts
# for Bash Shell CLI styling
export PATH=/usr/local/bin:$PATH
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)export GPG_TTY=$(tty)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH=${PATH}:/usr/local/mysql/bin
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[0;35m\]\t \[\033[0m\]\u \W\[\033[0;35m\]\$(parse_git_branch)\[\033[0m\] $ "
# Google Cloud SDK Scripts
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/guy/google-cloud-sdk/path.bash.inc' ]; then . '/Users/guy/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/guy/google-cloud-sdk/completion.bash.inc' ]; then . '/Users/guy/google-cloud-sdk/completion.bash.inc'; fi
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment