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:
11
zsh/.zshenv
11
zsh/.zshenv
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user