aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc44
1 files changed, 35 insertions, 9 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index d6c2996..21ffeed 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -5,8 +5,10 @@
5# If not running interactively, don't do anything 5# If not running interactively, don't do anything
6[[ $- != *i* ]] && return 6[[ $- != *i* ]] && return
7 7
8export PS1='[\d][\t]\u on \h\n\w => '
9export TERM="xterm-256color"
10
8alias ls='ls --color=auto' 11alias ls='ls --color=auto'
9alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &'
10 12
11man() { 13man() {
12 env LESS_TERMCAP_mb=$'\E[01;31m' \ 14 env LESS_TERMCAP_mb=$'\E[01;31m' \
@@ -19,6 +21,10 @@ man() {
19 man "$@" 21 man "$@"
20} 22}
21 23
24exists() {
25 hash $@ 2> /dev/null
26}
27
22vim() { 28vim() {
23 if [[ -z $@ ]]; then 29 if [[ -z $@ ]]; then
24 /usr/bin/vim 30 /usr/bin/vim
@@ -30,14 +36,34 @@ vim() {
30 fi 36 fi
31} 37}
32 38
33export PS1='[\d][\t]\u on \h\n\w => ' 39if exists mpv; then
34export GOPATH="$HOME/programming/go" 40 alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
35export GEM_HOME="$(ruby -e 'print Gem.user_dir')/bin" 41elif exists vlc; then
36export PATH="$PATH:$GEM_HOME:$GOPATH/bin" 42 alias jblive='vlc rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
37export EDITOR="vim" 43fi
38export TERM="xterm-256color" 44
45if exists vim; then
46 export EDITOR="vim"
47fi
48
49if exists go; then
50 export GOPATH="$HOME/programming/go"
51 export PATH="$PATH:$GOPATH/bin"
52fi
53
54if exists gem; then
55 export GEM_HOME="$(ruby -e 'print Gem.user_dir')/bin"
56 export PATH="$PATH:$GEM_HOME"
57fi
58
59if exists liquidprompt; then
60 source liquidprompt
61fi
39 62
40source liquidprompt 63if exists archey3; then
41archey3 64 archey3
65elif exists screenfetch; then
66 screenfetch
67fi
42 68
43# vim: set ts=8 sw=8 tw=0 noet : 69# vim: set ts=8 sw=8 tw=0 noet :