mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30: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:
2
gem/.config/gem/gemrc
Normal file
2
gem/.config/gem/gemrc
Normal file
@@ -0,0 +1,2 @@
|
||||
gem: --no-ri --no-rdoc --user-install
|
||||
update_sources: true
|
||||
@@ -50,7 +50,7 @@ installIfAvailable systemctl systemd
|
||||
installIfAvailable pacman
|
||||
installIfAvailable git
|
||||
installIfAvailable latexmk
|
||||
|
||||
installIfAvailable gem
|
||||
|
||||
if commandAvailable weechat; then
|
||||
echo "Setting up weechat settings…"
|
||||
|
||||
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