1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Add ruby configuration.

This configuration should cause Ruby gems to be installed somewhat
consistently across my machines, and always in the  home directory.
This commit is contained in:
Bert Peters
2016-11-27 17:23:25 +01:00
parent 56cc2b2941
commit c6d75a2a21
3 changed files with 14 additions and 1 deletions

View File

@@ -46,3 +46,14 @@ export WINEPREFIX="$XDG_DATA_HOME/wine"
test -f "$XDG_CONFIG_HOME/tmux/tmux.conf" && alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"/tmux
mkdir -p -m 700 "$TMUX_TMPDIR"
# Set up Rubygems
if hash gem &> /dev/null; then
export GEMRC="$XDG_CONFIG_HOME/gem/gemrc"
#TODO: move this to XDG_DATA_HOME
export GEM_HOME=$(ruby -e 'puts Gem.user_dir')
export GEM_PATH=$GEM_HOME
path+="$GEM_HOME/bin"
fi