blob: 5cd7594da6b212b157d56893afbf87a7717ac96a (
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
|
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)
# 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'
export FZF_DEFAULT_OPTS="--color=light"
if [ $(command -v fdfind) ] ; then
export FZF_DEFAULT_COMMAND="fdfind --type file"
export FZF_ALT_C_COMMAND="fdfind --type directory"
elif [ $(command -v fd) ] ; then
export FZF_DEFAULT_COMMAND="fd --type file"
export FZF_ALT_C_COMMAND="fd --type directory"
fi
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Better `set -x` messages
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
# vim: et ft=zsh :
|