aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
blob: 8988d9cac7325ea0aa0f32e65dc675c24f73ca60 (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
#
# ~/.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 PATH="$PATH:$GOPATH/bin"
export EDITOR="vim"

source liquidprompt
archey3

# vim: set ts=8 sw=8 tw=0 noet :