Skip to content

Instantly share code, notes, and snippets.

@xphong
Last active December 3, 2016 15:07
Show Gist options
  • Save xphong/d0c5d1463edb45379267 to your computer and use it in GitHub Desktop.
Save xphong/d0c5d1463edb45379267 to your computer and use it in GitHub Desktop.
Java/Jython Paths + Aliases
#PATHs
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7.0_72)
export PATH="$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
export JYTHON_HOME=/Users/phonghuynh/jython2.5.3
export PATH=$JYTHON_HOME/bin:$PATH
# Java Environments
alias setJdk6='export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)'
alias setJdk7='export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)'
alias setJdk8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)'
alias ls='ls -Gp' # Preferred ‘ls’ implementation
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias edit='sublime' # edit: Opens any file in sublime editor
alias f='open -a Finder ./' # f: Opens current directory in MacOS Finder
alias c='clear' # c: Clear terminal display
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
alias .4='cd ../../../../' # Go back 4 directory levels
alias .5='cd ../../../../../' # Go back 5 directory levels
alias .6='cd ../../../../../../' # Go back 6 directory levels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment