blob: 11a87887797d2791f391227281fefa3968cc2ab0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export PS1='[\d][\t]\u on \h\n\w => '
export TERM="xterm-256color"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/.local/usr/bin"
export PATH="$PATH:$HOME/.local/usr/local/bin"
case "$(uname)" in
Linux)
alias ls="ls --color=auto"
usr="/usr"
;;
FreeBSD)
alias ls="ls -G"
usr="/usr/local"
;;
*)
;;
esac
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 "$@"
}
exists() {
hash $@ 2> /dev/null
}
vim() {
if [[ -z $@ ]]; then
$usr/bin/vim
elif [[ -d $@ ]]; then
dir=$(pwd)
cd $@ && $usr/bin/vim && cd $dir
else
$usr/bin/vim $@
fi
}
if exists mpv; then
alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
elif exists vlc; then
alias jblive='vlc rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
fi
if exists vim; then
export EDITOR="vim"
fi
if exists go; then
export GOPATH="$HOME/programming/go"
export PATH="$PATH:$GOPATH/bin"
fi
if exists gem; then
export GEM_HOME="$(ruby -e 'print Gem.user_dir')/bin"
export PATH="$PATH:$GEM_HOME"
fi
if exists liquidprompt; then
source liquidprompt
fi
if exists archey3; then
archey3
elif exists screenfetch; then
screenfetch
fi
# vim: set ts=8 sw=8 tw=0 noet :
|