Created
September 8, 2016 01:58
-
-
Save wad3g/1124ededc24981cc3e37f818d335b4b0 to your computer and use it in GitHub Desktop.
My Bash Profile
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
#!/bin/bash | |
# Set 256 color profile where possible | |
if [[ $COLORTERM == gnome-* && $TERM == xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM=xterm-256color | |
fi | |
### Set Architecture Flags | |
export ARCHFLAGS="-arch x86_64" | |
### Set GNU coreutils | |
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
### Set Alternative coreutils | |
###$PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH | |
### Set Paths | |
export PATH=$PATH:/usr/local/bin | |
export PATH=$HOME/bin:$PATH | |
export PATH=$PATH:/usr/local/bin/npm | |
export PATH="/usr/local/share/npm/bin:$PATH" | |
export PATH="/usr/local/heroku/bin:$PATH" | |
export PATH=${PATH}:/Users/admin/Android | |
export PATH=$PATH:~/.nexustools | |
### RBENV | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
export RBENV_ROOT=/usr/local/var/rbenv | |
export PATH="$HOME/.rbenv/shims:$PATH" | |
eval "$(rbenv init -)" | |
### golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export GOPATH=$HOME/.go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
export PATH=$PATH:/usr/local/opt/go/libexec/bin | |
### Set Aliases | |
## Terminal | |
alias ~="cd ~" | |
alias ..="cd ../" | |
alias ...="cd ../../" | |
alias path="echo -e ${PATH//:/\\n}" | |
alias todb="tee ~/Dropbox/Notes/terminal-putput.txt" | |
alias sudo="sudo " | |
alias edit_profile='open -e ~/.bash_profile' | |
## Directories | |
alias project="cd ~/Projects" | |
alias repos="cd ~/gitRepos" | |
alias wsp="cd ~/Projects/web-sales-portal" | |
alias wca="cd ~/Projects/web-consumer-app" | |
alias wca2="cd ~/Projects/web-consumer-app-2" | |
alias dp="cd ~/Projects/web-developer-portal" | |
alias blog="cd ~/gitRepos/blog" | |
alias tomcat="cd /opt/iscs/servers/apache-tomcat-8.0.21/bin" | |
alias spi="cd ~/Projects/custNWES/web" | |
## Directory Listings | |
alias work="cd ~/Projects && ls" | |
alias personal="cd ~/gitRepos && ls" | |
alias db="cd ~/Dropbox" | |
alias dl="cd ~/Downloads" | |
## Build | |
alias octopress="rake" | |
alias gti="grunt build:test -companyId iic --buildNumber 123" | |
alias gtfic="grunt build:test -companyId fic --buildNumber 123" | |
### System | |
alias osx="sw_vers" | |
alias killDS="find . -type f -name '*.DS_Store' -ls -delete" | |
alias show="defaults write com.apple.finder ShowAllFiles TRUE" | |
alias hide="defaults write com.apple.finder ShowAllFiles FALSE" | |
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment