diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-08 14:09:53 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-08 14:09:53 +0200 |
commit | e173639bc27332e46afa0c0bbc03df576e6d1ab2 (patch) | |
tree | 4f4acf4255be438ae4ba257ac6b96b76e2d055bf /bashrc | |
parent | ecc4dac3779a7d7fdb40691e32cb54a2c137bf20 (diff) | |
download | bin-e173639bc27332e46afa0c0bbc03df576e6d1ab2.zip bin-e173639bc27332e46afa0c0bbc03df576e6d1ab2.tar.gz |
bashrc : clean up
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -49,9 +49,6 @@ case $OSNAME in esac # ENV -# prepend ~/bin to path if not already there -HOME_=$(readlink -f ${HOME%/}) -export PATH=${HOME_}/bin:${PATH#${HOME_}/bin:} function set_if_not_in() { env_var=$1 @@ -69,32 +66,25 @@ function export_if_exists() eval "export $1=$_TMP" } -export_if_exists 'PAGER' 'less' '/bin/more' -export_if_exists 'EDITOR' 'vim' '/usr/bin/vi' - [ -r /etc/profile.d/undistract-me.sh ] && source /etc/profile.d/undistract-me.sh +# prepend ~/bin to path if not already there +HOME_=$(readlink -f ${HOME%/}) +export PATH=${HOME_}/bin:${PATH#${HOME_}/bin:} +export_if_exists 'PAGER' 'less' '/bin/more' +export EDITOR=vim # 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" alias vimdiff="nvim -d -u ~/.vimrc" alias fuck='eval $(thefuck $(fc -ln -1)); history -r' -# MISC -export OOO_FORCE_DESKTOP=gnome -export OGGOPTS="-b 160 -q 4" -if [ ! -z `which ncmpc 2>/dev/null` ] -then - export MPD_HOST=bigdaddy; -fi - -# FUCTIONS +# FUNCTIONS function lip () { # local ips ip -c addr | sed -n '/^[1-9]:/p;/inet /p' } |