From e173639bc27332e46afa0c0bbc03df576e6d1ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 May 2018 14:09:53 +0200 Subject: bashrc : clean up --- bashrc | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/bashrc b/bashrc index 0232ac9..c78e7f1 100644 --- a/bashrc +++ b/bashrc @@ -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' } -- cgit v1.1-2-g2b99