summaryrefslogtreecommitdiff
path: root/bashrc
blob: 61efd6378c6a60070b2d581224534629460ca15f (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
#!/usr/bin/bash

. /etc/bash_colours

# Force false terminal to get colour with (eg) ls within dvtm
if [ "$TERM" == "dvtm-256color" ]; then 
	TERM=rxvt-256color
	# Quick fix for readline Del key in st
	# disabled 2016-01-21
	#echo $(tput smkx) > /dev/tty
fi

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 "$@"
}
###############
PS1="${BYellow}\
┌[${BGreen}\u${BYellow}@${BBlue}\h${BYellow}][${BPurple}\W${BYellow}] ${BBlack}<\d \t>${BYellow}\n\
└╼ \[${Colour_Off}\]"
###############

export GPG_TTY=$(tty)
export EDITOR=/usr/bin/vim
if [ $(which clang 2>/dev/null) ]; then
	export CC=clang
	export CXX=clang
fi

alias sudo="sudo "
alias monut=mount
alias pamcan=pacman
#alias scron="sudo EDITOR=nano crontab -e"
alias ls="/bin/ls --color=auto"
alias sl=ls
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias xpdf="xpdf -cont"
alias feh="feh --magick-timeout=0"
alias xclip="xclip -selection c"

echo Running $(uname) $(uname -r) on $(uname -n) \($(uname -m)\)


if [ -f ~/todo ]; then
	echo To do:
	cat ~/todo
else
	echo To do list empty
fi

if [ -f ~/.cache/weather/forecast ]; then
		echo ""
		echo Weather:
		cat ~/.cache/weather/forecast | while read -r l ; do echo " "$l ; done 
fi