dotfiles/.zprofile

39 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-06-26 21:27:38 +00:00
# xdg
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
2020-09-04 10:09:08 +00:00
# adjust programs to use xdg
2020-10-14 14:49:53 +00:00
#export XAUTHORITY="$XDG_CACHE_HOME/Xauthority"
#export XAUTHORITY="/tmp/Xauthority"
2020-09-04 10:09:08 +00:00
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
2020-10-13 09:19:09 +00:00
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export TIMEWARRIORDB="$XDG_DATA_HOME/timewarrior"
export TASKRC="$XDG_CONFIG_HOME/task/taskrc"
export TASKDATA="$XDG_DATA_HOME/task"
2020-09-04 10:09:08 +00:00
# zsh dirs
2020-06-26 21:27:38 +00:00
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export _Z_DATA="$XDG_DATA_HOME/zsh/z"
export HISTFILE="$XDG_DATA_HOME/zsh/history"
2020-09-04 10:09:08 +00:00
2020-06-26 21:27:38 +00:00
# environment
export EDITOR=/usr/bin/nvim
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export LESS=-R
2020-09-04 10:09:08 +00:00
# red stderr
test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
2020-06-26 21:27:38 +00:00
# software config
# enable pass extensions
export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
2020-09-04 10:09:08 +00:00
# fzf defaults
export FZF_DEFAULT_OPTS='--select-1 --exit-0 --tiebreak=end,length --history=/var/tmp/fzf-history --ansi --bind="alt-enter:execute(test -O {} && $EDITOR {} || sudoedit {}),del:execute(gio trash {}),change:top,left-click:execute(xdg-open {})"'
FD_BASE="fd --hidden --color=always --no-ignore-vcs"
export FZF_DEFAULT_COMMAND="$FD_BASE --type file"
export FZF_CTRL_T_COMMAND="$FD_BASE -d 7"
2020-09-04 10:09:08 +00:00
# ctest
export CTEST_PROGRESS_OUTPUT=1
export CTEST_OUTPUT_ON_FAILURE=1
export CTEST_PARALLEL_LEVEL=3