summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-02-12 14:14:11 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2018-02-12 14:14:11 +0100
commit78545af3c86be4d14aef96152b5ec2781277d643 (patch)
treed136799ce18d6ad23784019459ca674f09826bb4
parent01821aab1ac7f6f2da7372ce3d628caad033559f (diff)
downloadbin-78545af3c86be4d14aef96152b5ec2781277d643.zip
bin-78545af3c86be4d14aef96152b5ec2781277d643.tar.gz
bashrc : update ruby env
-rw-r--r--bashrc10
1 files 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"