2020-06-26 21:27:38 +00:00
|
|
|
# xdg
|
2020-12-23 12:45:13 +00:00
|
|
|
export DATA="$HOME/data"
|
2020-06-26 21:27:38 +00:00
|
|
|
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
|
2021-03-10 13:00:17 +00:00
|
|
|
export KDEHOME="$XDG_DATA_HOME"/kdehome
|
2020-12-25 12:51:42 +00:00
|
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
2020-12-23 12:45:13 +00:00
|
|
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
|
|
|
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
|
|
|
export GOPATH="$XDG_DATA_HOME"/go
|
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
|
|
|
export RLWRAP_HOME="$XDG_DATA_HOME"/rlwrap
|
|
|
|
# Java & Android
|
2020-10-13 09:19:09 +00:00
|
|
|
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
2020-12-23 12:45:13 +00:00
|
|
|
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
|
|
|
|
export ANDROID_PREFS_ROOT="$XDG_CONFIG_HOME"/android
|
|
|
|
export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/emulator
|
|
|
|
export ANDROID_SDK_ROOT="/opt/android/sdk"
|
|
|
|
# taskwarrior & timewarrior
|
2020-10-13 09:19:09 +00:00
|
|
|
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"
|
2021-01-23 18:58:44 +00:00
|
|
|
# ccache - can be removed with version 4 - https://github.com/ccache/ccache/issues/191
|
|
|
|
export CCACHE_CONFIGPATH="$XDG_CONFIG_HOME"/ccache.config
|
|
|
|
export CCACHE_DIR="$XDG_CACHE_HOME"/ccache
|
2020-09-04 10:09:08 +00:00
|
|
|
|
2020-06-26 21:27:38 +00:00
|
|
|
# environment
|
2020-03-31 20:32:08 +00:00
|
|
|
export EDITOR=/usr/bin/nvim
|
|
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
2021-01-07 11:04:19 +00:00
|
|
|
export LESS='--RAW-CONTROL-CHARS --ignore-case'
|
2020-09-04 10:09:08 +00:00
|
|
|
# red stderr
|
2020-10-12 20:23:38 +00:00
|
|
|
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
|
2020-09-19 07:34:47 +00:00
|
|
|
# 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 {})"'
|
2020-11-14 01:28:26 +00:00
|
|
|
FD_BASE="fd --hidden --color=always --no-ignore-vcs"
|
|
|
|
export FZF_DEFAULT_COMMAND="$FD_BASE --type file"
|
2020-11-30 21:13:43 +00:00
|
|
|
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
|
2021-01-07 11:04:44 +00:00
|
|
|
|
|
|
|
if test -z "${DISPLAY}" && test "${XDG_VTNR}" -eq 1 ; then
|
|
|
|
echo "What do you want to do?"
|
|
|
|
read response
|
|
|
|
jrnl intentions "$response"
|
|
|
|
exec startx
|
|
|
|
fi
|