Last active
April 4, 2018 22:23
-
-
Save jjsub/fdae7156b531e68b66ac to your computer and use it in GitHub Desktop.
This file contains 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
$ open -a TextEdit .bash_profile | |
txtblk='[\e[0;30m]' # Black | |
txtred='\[\e[0;31m\]' # Red | |
txtgrn='\[\e[0;32m\]' # Green | |
txtylw='\[\e[0;33m\]' # Yellow | |
txtblu='\[\e[0;34m\]' # Blue | |
txtpur='\[\e[0;35m\]' # Purple | |
txtcyn='\[\e[0;36m\]' # Cyan | |
txtwht='\[\e[0;37m\]' # White | |
txtrst='\[\e[0m\]' # Text Reset | |
export GIT_HOME=/usr/local/git/bin | |
export NODE_HOME=/usr/local/node/bin | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export PATH=$GIT_HOME:$NODE_HOME:$PATH | |
export EDITOR=vim | |
export SHELL=/bin/bash | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
export ANT_HOME=/Users/juanjobr/Documents/dev/ant | |
export PATH=${PATH}:/Users/juanjobr/Documents/dev/android-sdk-macosx/platform-tools | |
export PATH=${PATH}:/Users/juanjobr/Documents/dev/android-sdk-macosx/tools:/Users/juanjobr/Documents/dev/ant/bin | |
alias ll='ls -lahp' | |
alias l='ls -a' | |
alias b='cd ..' | |
alias codef='cd ~/Documents/code' | |
alias c='clear' | |
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' | |
branch() | |
{ | |
git branch 2> /dev/null | awk '/\*/ {print "#" $2;}' | |
} | |
status() | |
{ | |
git status --porcelain 2> /dev/null | wc | awk '{if($1 > 0)print"+";}' | |
} | |
export PS1="$txtcyn\u$txtred@$txtcyn\h $txtred\w $txtylw\$(status)$txtgrn\$(branch)$txtcyn:$txtrst " | |
PATH=$PATH\:/dir/path ; export PATH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to edit/delete a .dot_file on mac without using Terminal
1.Open a plain text editor, for example TextEdit
2.Press Command + o
3.Navigate to your home directory
4.If you don't see .bash_profile, then press Command + Shift + > to show hidden files
5.Select .bash_profile, fix the problem, and save it