aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S20_environment
blob: a229b07514a18e51353312991d2f132c30e29cf7 (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
if [ x"$HOME" = x ] ; then
    export HOME=$(cd ~ ; pwd)
fi
if [ x"$HOSTNAME" = x ] ; then
    export HOSTNAME=$(/bin/hostname)
fi

path=(~/bin ~/.local/bin $path)

fpath=($HOME/.zsh/zsh-completions/src "${fpath[@]}")
fpath=($HOME/.zsh/zsh-completions-cached "${fpath[@]}")
fpath=(/usr/share/zsh/site-functions "${fpath[@]}")
# To force rebuild zcompdump:
# rm -f ~/.zcompdump; compinit


export SHELL=/bin/zsh

export MANWIDTH=80
export EDITOR=vim
export VISUAL=vim
export LESS=FRSXi
if [ -f "$HOME/.lessfilter.sh" ] ; then
    export LESSOPEN="| $HOME/.lessfilter.sh %s"
elif [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ] ; then
    export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
elif [ -f "/usr/bin/src-hilite-lesspipe.sh" ] ; then
    export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
fi

export XZ_DEFAULTS="--threads 4"

# this make man pages look nicer
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'

# Better `set -x` messages
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}:   '

# Allow pip to only run in a virtual environment; exit with an error otherwise.
export PIP_REQUIRE_VIRTUALENV=true

# vim: et ft=zsh :