50 lines
939 B
Bash
50 lines
939 B
Bash
# vim: ft=bash
|
|
|
|
umask 022
|
|
|
|
export EDITOR="nvim"
|
|
export VISUAL="$EDITOR"
|
|
|
|
export PAGER="less"
|
|
export LESS="-nMiSRx4 --mouse -# 1 -+X -+F"
|
|
|
|
if command -v "lesspipe.sh" &>/dev/null; then
|
|
export LESSOPEN="| lesspipe.sh %s"
|
|
fi
|
|
|
|
export CDPATH=:~:~/code
|
|
|
|
export HISTSIZE=100000
|
|
export HISTFILESIZE="$HISTSIZE"
|
|
export HISTCONTROL=ignoreboth:erasedups
|
|
export HISTTIMEFORMAT="%F %T "
|
|
export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h"
|
|
|
|
export BROWSERCLI=w3m
|
|
test -z "$BROWSER" && export BROWSER=firefox
|
|
|
|
if [ -d "$HOME/.local/bin" ] ; then
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
fi
|
|
|
|
for TMPDIR in "$TMPDIR" "$TMP" /tmp /var/tmp
|
|
do
|
|
test -d "$TMPDIR" && break
|
|
done
|
|
|
|
export TMPDIR
|
|
|
|
export FZF_DEFAULT_OPTS="\
|
|
--cycle \
|
|
--pointer='' \
|
|
--marker='+' \
|
|
--color='pointer:green' \
|
|
--bind \
|
|
ctrl-/:toggle-preview,\
|
|
ctrl-a:toggle-all,\
|
|
ctrl-p:preview-up,\
|
|
ctrl-n:preview-down,\
|
|
ctrl-u:clear-query,\
|
|
tab:toggle+down,\
|
|
shift-tab:toggle\
|
|
" |