Skip to content

Instantly share code, notes, and snippets.

@ignasi35
Created September 21, 2018 08:38
Show Gist options
  • Save ignasi35/ddaab476f991695351e9d9ad75b46299 to your computer and use it in GitHub Desktop.
Save ignasi35/ddaab476f991695351e9d9ad75b46299 to your computer and use it in GitHub Desktop.
Personal notes for bash profile
# Add Homebrew `/usr/local/bin` and User `~/bin` to the `$PATH`
PATH=/usr/local/bin:$PATH
PATH=$HOME/bin:$PATH
export PATH
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && source "$file"
done
unset file
## https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
## https://unix.stackexchange.com/a/208250 realtime history
export PROMPT_COMMAND='history -a'
eval "$(direnv hook bash)"
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_172`
export LC_CTYPE="UTF-8"
# serve the local folder over http://localhost:8000
alias serve="python -m SimpleHTTPServer"
# Open IntelliJ in the current folder
## KUDOS @renatocaval
ij () {
open -a /Applications/IntelliJ\ IDEA.app .
}
## KUDOS @renatocaval
alias lgm="cd git/projects/lightbend/lagom/lagom-master/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment