Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion home/.bash/hitch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Alternatively, copy/symlink this file and source in your shell. See `hitch --setup-path`.

hitch() {
(rvm system; command hitch "$@")
if [[ -s "$HOME/.rvm" ]]; then
(rvm system; command hitch "$@")
fi
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi
}
alias unhitch='hitch -u'
Expand Down
6 changes: 4 additions & 2 deletions home/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export PATH="$HOME/.bin:$PATH"

source "$HOME/.vi-everywhere/bash.d/init.sh"

PATH=$PATH:/usr/local/rvm/bin # Add RVM to PATH for scripting
if [[ -s "$HOME/.rvm" ]]; then
PATH=$PATH:/usr/local/rvm/bin # Add RVM to PATH for scripting

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
fi
16 changes: 11 additions & 5 deletions home/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,20 @@ alias rake='noglob rake'
# Alternatively, copy/symlink this file and source in your shell. See `hitch --setup-path`.

hitch() {
(rvm system; command hitch "$@")
if [[ -s "$HOME/.rvm" ]]; then
(rvm system; command hitch "$@")
fi
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi
}
alias unhitch='hitch -u'
alias vi='vim'
alias openwork='vim -p $(git ls-files -m) $(git ls-files --others --exclude-standard)'

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH=$PATH:$HOME/bin # Make personal scripts available
PATH=$PATH:$HOME/.bin # Make dotfiles scripts available
if [[ -s "$HOME/.rvm" ]]; then
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH=$PATH:$HOME/bin # Make personal scripts available
PATH=$PATH:$HOME/.bin # Make dotfiles scripts available
fi

# tell nokogiri to use sysem libraries instead of compiling packaged libs
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
Expand Down Expand Up @@ -140,4 +144,6 @@ fi

# RVM is a silly thing. This fixes tmux not loading gemset
# http://stackoverflow.com/a/6097090/3010499
cd .
if [[ -s "$HOME/.rvm" ]]; then
cd .
fi