Created
September 21, 2018 08:38
-
-
Save ignasi35/ddaab476f991695351e9d9ad75b46299 to your computer and use it in GitHub Desktop.
Personal notes for bash profile
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
# 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