From 78545af3c86be4d14aef96152b5ec2781277d643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 12 Feb 2018 14:14:11 +0100 Subject: bashrc : update ruby env --- bashrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index e6add41..954055e 100644 --- a/bashrc +++ b/bashrc @@ -61,9 +61,6 @@ function set_if_not_in() IFS=" "; export ${env_var}=$arg:${!env_var} } -# RUBY -export GEM_HOME="${HOME_}/.gem/ruby/2.4.0" -set_if_not_in 'PATH' ${GEM_HOME}/bin function export_if_exists() { @@ -71,9 +68,16 @@ function export_if_exists() [ -z ${_TMP} ] && _TMP=$3 eval "export $1=$_TMP" } + export_if_exists 'PAGER' 'less' '/bin/more' export_if_exists 'EDITOR' 'vim' '/usr/bin/vi' + +# RUBY +export GEM_HOME="${HOME_}/.gem/ruby/2.5.0" +set_if_not_in 'PATH' ${GEM_HOME}/bin + + # catch and eval dmalloc output #function dmalloc { eval `command dmalloc -b $*`; } alias vim="nvim -u ~/.vimrc" -- cgit v1.1-2-g2b99