summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-05-08 14:09:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-05-08 14:09:53 +0200
commite173639bc27332e46afa0c0bbc03df576e6d1ab2 (patch)
tree4f4acf4255be438ae4ba257ac6b96b76e2d055bf /bashrc
parentecc4dac3779a7d7fdb40691e32cb54a2c137bf20 (diff)
downloadbin-e173639bc27332e46afa0c0bbc03df576e6d1ab2.zip
bin-e173639bc27332e46afa0c0bbc03df576e6d1ab2.tar.gz
bashrc : clean up
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc22
1 files 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'
}