diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-02-12 14:14:11 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-02-12 14:14:11 +0100 |
commit | 78545af3c86be4d14aef96152b5ec2781277d643 (patch) | |
tree | d136799ce18d6ad23784019459ca674f09826bb4 /bashrc | |
parent | 01821aab1ac7f6f2da7372ce3d628caad033559f (diff) | |
download | bin-78545af3c86be4d14aef96152b5ec2781277d643.zip bin-78545af3c86be4d14aef96152b5ec2781277d643.tar.gz |
bashrc : update ruby env
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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" |