Skip to content

Instantly share code, notes, and snippets.

@jjsub
Last active April 4, 2018 22:23
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 jjsub/fdae7156b531e68b66ac to your computer and use it in GitHub Desktop.
Save jjsub/fdae7156b531e68b66ac to your computer and use it in GitHub Desktop.
$ 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
@jjsub
Copy link
Author

jjsub commented Mar 10, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment