diff options
| author | 2015-03-30 10:25:12 +0200 | |
|---|---|---|
| committer | 2015-03-30 10:25:12 +0200 | |
| commit | 8eee1c45bef74aa6094f463f9888ac653958b3dc (patch) | |
| tree | 0e2a066fd4da4afcf08f0bef348511b5c9ac48f7 /bash/.bashrc | |
| parent | c7ebce541a9914d4e5a3b52e838e2ac66dd139a0 (diff) | |
| download | dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.gz dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.bz2 dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.zip | |
Moving back to stow for management
reasons: dotfiles.sh misbehaving on freebsd
Diffstat (limited to 'bash/.bashrc')
| -rw-r--r-- | bash/.bashrc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..218b1a8 --- /dev/null +++ b/bash/.bashrc | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # | ||
| 2 | # ~/.bashrc | ||
| 3 | # | ||
| 4 | |||
| 5 | # If not running interactively, don't do anything | ||
| 6 | [[ $- != *i* ]] && return | ||
| 7 | |||
| 8 | alias ls='ls --color=auto' | ||
| 9 | alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &' | ||
| 10 | |||
| 11 | pacaur() { | ||
| 12 | env pacman_program="pacaur" /usr/bin/pacmatic "$@" | ||
| 13 | } | ||
| 14 | |||
| 15 | man() { | ||
| 16 | env LESS_TERMCAP_mb=$'\E[01;31m' \ | ||
| 17 | LESS_TERMCAP_md=$'\E[01;38;5;74m' \ | ||
| 18 | LESS_TERMCAP_me=$'\E[0m' \ | ||
| 19 | LESS_TERMCAP_se=$'\E[0m' \ | ||
| 20 | LESS_TERMCAP_so=$'\E[38;5;246m' \ | ||
| 21 | LESS_TERMCAP_ue=$'\E[0m' \ | ||
| 22 | LESS_TERMCAP_us=$'\E[04;38;5;146m' \ | ||
| 23 | man "$@" | ||
| 24 | } | ||
| 25 | |||
| 26 | vim() { | ||
| 27 | if [[ -z $@ ]]; then | ||
| 28 | /usr/bin/vim | ||
| 29 | elif [[ -d $@ ]]; then | ||
| 30 | dir=$(pwd) | ||
| 31 | cd $@ && /usr/bin/vim && cd $dir | ||
| 32 | else | ||
| 33 | /usr/bin/vim $@ | ||
| 34 | fi | ||
| 35 | } | ||
| 36 | |||
| 37 | export PS1='[\d][\t]\u on \h\n\w => ' | ||
| 38 | export GOPATH="$HOME/programming/go" | ||
| 39 | export GEM_HOME="$(ruby -e 'print Gem.user_dir')/bin" | ||
| 40 | export PATH="$PATH:$GEM_HOME:$GOPATH/bin" | ||
| 41 | export EDITOR="vim" | ||
| 42 | |||
| 43 | source liquidprompt | ||
| 44 | archey3 | ||
| 45 | |||
| 46 | # vim: set ts=8 sw=8 tw=0 noet : | ||
