-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshenv
156 lines (118 loc) · 3.4 KB
/
zshenv
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# Defines environment variables.
#
# {{{ Environment vars
export GVIM_ENABLE_WAYLAND=1
#export LC_ALL="en_US.UTF-8"
#export LANG="en_US.UTF-8"
# MOZ_ENABLE_WAYLAND=1
# export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
#export TERM='rxvt-256color'
# for tmux: export 256color
# [ -n "$TMUX" ] && export TERM=screen-256color
# FZF conf
# export FZF_DEFAULT_COMMAND='ag -g "" --hidden --ignore-case'
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# [-n "$TMUX" ] && export FZF_TMUX=1
# default permissions
# umask 022
# Proxy HTTP / FTP
#export http_proxy="http://login:password@proxy.exemple.org:8080"
#export ftp_proxy="ftp://login:password@proxy.exemple.org:8080"
# Ne pas passer par le proxy pour les domaines locaux
#export no_proxy="exemple.org"
# export BROWSER="firefox"
# run multiple Firefox
#export MOZ_NO_REMOTE=1
# for pcmanfm's list of apps
#export XDG_MENU_PREFIX=lxde-
# History
HISTSIZE=20000 # The maximum number of events to save in the internal history.
SAVEHIST=50000 # The maximum number of events to save in the history file.
# }}}
# {{{ Python
# export PYTHONPATH="$HOME/lib/python:$PYTHONPATH"
# export PYTHONSTARTUP="$HOME/.pythonrc"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
# export PATH="$PYENV_ROOT/bin:$PATH"
# if command -v pyenv 1>/dev/null 2>&1; then
# eval "$(pyenv init --path zsh)"
# fi
if [[ -n $VIRTUAL_ENV && -e "${VIRTUAL_ENV}/bin/activate" ]]; then
source "${VIRTUAL_ENV}/bin/activate"
fi
# }}}
#
# Editors
#
#export VISUAL="emacsclient -c"
#export EDITOR="emacsclient -t"
#export ALTERNATE_EDITOR="emacs"
export VISUAL="gvim -f"
export EDITOR="vim"
export PAGER=less
#
# Language
#
if [[ -z "$LANG" ]]; then
eval "$(locale)"
fi
#
# Paths
#
typeset -gU cdpath fpath mailpath path
# Set the the list of directories that cd searches.
# cdpath=(
# $cdpath
# )
# Set the list of directories that Zsh searches for programs.
path=(
$HOME/bin
$HOME/bin/html2rst
$HOME/bin/html2text
$HOME/lib/eso_fits_tools
$HOME/.local/bin
/usr/local/{bin,sbin}
/usr/{bin,sbin}
/{bin,sbin}
$path
)
#
# Less
#
# Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X and -F (exit if the content fits on one screen) to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4'
# export LESS_TERMCAP_mb=$'\E[01;31m' # begin blink !
# export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
# export LESS_TERMCAP_me=$'\E[0m' # end
# export LESS_TERMCAP_so=$'\E[01;44;33m' # début statusbar
# export LESS_TERMCAP_se=$'\E[0m' # end
# export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
# export LESS_TERMCAP_ue=$'\E[0m' # end
# export LESSHISTFILE="-" # turn off .lesshst file
# Set the Less input preprocessor.
if (( $+commands[lesspipe.sh] )); then
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
export LESS_ADVANCED_PREPROCESSOR=1
fi
#
# Temporary Files
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$USER"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
# tilix
if [[ $TILIX_ID ]]; then
source /etc/profile.d/vte.sh
fi
[ -f $HOME/lib/dotfiles/zsh/localenv.zsh ] && source $HOME/lib/dotfiles/zsh/localenv.zsh