48 lines
889 B
Bash
48 lines
889 B
Bash
|
|
# vim: ft=zsh
|
|
|
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
|
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
|
|
|
for TMPDIR in "${TMPDIR}" "${TMP}" /tmp /var/tmp
|
|
do
|
|
test -d "${TMPDIR}" && break
|
|
done
|
|
export TMPDIR
|
|
|
|
|
|
export EDITOR="nvim"
|
|
export VISUAL="${EDITOR}"
|
|
|
|
export PAGER="less"
|
|
export LESS="-nMWiSRx4 --mouse -j2 -# 1 -+X -+F"
|
|
if command -v "lesspipe.sh" &>/dev/null; then
|
|
export LESSOPEN="| lesspipe.sh %s"
|
|
fi
|
|
|
|
|
|
export FZF_DEFAULT_OPTS="\
|
|
--cycle
|
|
--color='gutter:-1,pointer:red,preview-border:grey,separator:grey'
|
|
--pointer='> '
|
|
--marker='* '
|
|
--preview-window=70%
|
|
--bind
|
|
ctrl-/:toggle-preview,\
|
|
ctrl-a:toggle-all,\
|
|
ctrl-p:preview-up,\
|
|
ctrl-n:preview-down,\
|
|
ctrl-u:clear-query,\
|
|
ctrl-o:toggle,\
|
|
tab:replace-query\
|
|
"
|
|
|
|
export BROWSERCLI=w3m
|
|
test -z "${BROWSER}" && BROWSER=firefox
|
|
export BROWSER
|
|
|
|
if [ -d "${HOME}/.local/bin" ] ; then
|
|
export PATH="${HOME}/.local/bin:${PATH}"
|
|
fi
|
|
|
|
umask 022 |