summaryrefslogtreecommitdiffstats
path: root/.shrc
blob: 03ece67f7f3f2e6317465c620a14e3256082d3cf (plain) (blame)
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
#!/bin/sh -i

case $- in
	*i*) ;;

	*)
		return
		;;
esac

set -o vi
set -o nounset
set -o noclobber
set -o ignoreeof

PS1='$(sh-prompt $?)'
PS2="> "
PS3='? '
PS4='+ '

HISTSIZE=65535
HISTFILE=/dev/null

du(){
        set -- -k "$@"
        command du "$@"
}

df(){
        set -- -k "$@"
        command df "$@"
}

egrep() {
        set -- -E "$@"
        grep "$@"
}

fgrep() {
        set -- -F "$@"
        grep "$@"
}

ls(){
        set -- -Fk "$@"
        command ls  "$@"
}

venvon(){
	. "${1:-venv}/bin/activate"
}

if test -n ${TTY-} && test -t 0
then
	TTY=$(tty)
	export TTY
	export GPG_TTY=$TTY
fi