From 8eee1c45bef74aa6094f463f9888ac653958b3dc Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 30 Mar 2015 10:25:12 +0200 Subject: Moving back to stow for management reasons: dotfiles.sh misbehaving on freebsd --- bash/.bashrc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 bash/.bashrc (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..218b1a8 --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,46 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &' + +pacaur() { + env pacman_program="pacaur" /usr/bin/pacmatic "$@" +} + +man() { + env LESS_TERMCAP_mb=$'\E[01;31m' \ + LESS_TERMCAP_md=$'\E[01;38;5;74m' \ + LESS_TERMCAP_me=$'\E[0m' \ + LESS_TERMCAP_se=$'\E[0m' \ + LESS_TERMCAP_so=$'\E[38;5;246m' \ + LESS_TERMCAP_ue=$'\E[0m' \ + LESS_TERMCAP_us=$'\E[04;38;5;146m' \ + man "$@" +} + +vim() { + if [[ -z $@ ]]; then + /usr/bin/vim + elif [[ -d $@ ]]; then + dir=$(pwd) + cd $@ && /usr/bin/vim && cd $dir + else + /usr/bin/vim $@ + fi +} + +export PS1='[\d][\t]\u on \h\n\w => ' +export GOPATH="$HOME/programming/go" +export GEM_HOME="$(ruby -e 'print Gem.user_dir')/bin" +export PATH="$PATH:$GEM_HOME:$GOPATH/bin" +export EDITOR="vim" + +source liquidprompt +archey3 + +# vim: set ts=8 sw=8 tw=0 noet : -- cgit v1.2.3