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

2
gem/.config/gem/gemrc Normal file
View File

@@ -0,0 +1,2 @@
gem: --no-ri --no-rdoc --user-install
update_sources: true

View File

@@ -50,7 +50,7 @@ installIfAvailable systemctl systemd
installIfAvailable pacman
installIfAvailable git
installIfAvailable latexmk
installIfAvailable gem
if commandAvailable weechat; then
echo "Setting up weechat settings…"

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