Auto-jump setup

This commit is contained in:
Ivan Malison 2016-08-16 16:36:11 -07:00
parent 3916889ff5
commit 0058a21c5f
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 10 additions and 2 deletions

View File

@ -51,6 +51,7 @@
"android-sdk",
"ant",
"autoconf",
"autojump",
"automake",
"bash",
"binutils",

View File

@ -3,8 +3,15 @@ for filename in ~/.lib/shellrc/*; do
done
[ -s "/usr/local/bin/virtualenvwrapper.sh" ] && . /usr/local/bin/virtualenvwrapper.sh
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
function j() {
(( $+commands[brew] )) && {
local pfx=$(brew --prefix autojump)
[[ -f "$pfx/etc/autojump.sh" ]] && . "$pfx/etc/autojump.sh"
j "$@"
}
}
environment_variable_exists INSIDE_EMACS && inside_emacs_hook
# travis completion
[ -f "$HOME/.travis/travis.sh" ] && source "$HOME/.travis/travis.sh"
# XXX: Disabled to reduce performance impact
# [ -f "$HOME/.travis/travis.sh" ] && source "$HOME/.travis/travis.sh"