2021-04-01 17:00:33 +00:00
|
|
|
#!/bin/sh
|
2020-07-15 13:50:56 +00:00
|
|
|
|
2022-03-21 21:20:12 +00:00
|
|
|
set -a
|
2023-01-02 20:08:50 +00:00
|
|
|
#. "/etc/profile"
|
2021-04-01 17:00:33 +00:00
|
|
|
. "$HOME/.config/user-dirs.dirs"
|
|
|
|
. "$XDG_CONFIG_HOME/locale.conf"
|
2022-03-21 21:20:12 +00:00
|
|
|
set +a
|
2021-02-18 11:00:51 +00:00
|
|
|
|
2021-05-24 21:15:38 +00:00
|
|
|
export ANDROID_SDK_ROOT='/opt/android-sdk'
|
2022-03-21 21:20:12 +00:00
|
|
|
export AUTOSTART_DISPLAY='startx'
|
|
|
|
|
|
|
|
export BEMENU_OPTS="--tb '#6272a4'\
|
|
|
|
--tf '#f8f8f2'\
|
|
|
|
--fb '#282a36'\
|
|
|
|
--ff '#f8f8f2'\
|
|
|
|
--nb '#282a36'\
|
|
|
|
--nf '#6272a4'\
|
|
|
|
--hb '#44475a'\
|
|
|
|
--hf '#50fa7b'\
|
|
|
|
--sb '#44475a'\
|
|
|
|
--sf '#50fa7b'\
|
|
|
|
--scb '#282a36'\
|
|
|
|
--scf '#ff79c6'\
|
2022-12-14 14:26:53 +00:00
|
|
|
--list 25 --ignorecase -p ''"
|
2021-05-24 21:15:38 +00:00
|
|
|
|
2023-02-02 22:26:51 +00:00
|
|
|
export DMENU="bemenu"
|
2021-10-13 21:27:31 +00:00
|
|
|
export DOCKER_BUILDKIT=1
|
2021-03-19 10:56:50 +00:00
|
|
|
export DRONE_SERVER='https://ci.serguzim.me'
|
|
|
|
|
2022-12-14 14:26:53 +00:00
|
|
|
_editor="$(which vim)"
|
|
|
|
export EDITOR="$_editor"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2021-02-23 15:33:23 +00:00
|
|
|
export GOPATH="$XDG_DATA_HOME/go"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2022-03-26 14:08:10 +00:00
|
|
|
_hostname=$(cat /proc/sys/kernel/hostname)
|
|
|
|
export HOSTNAME="$_hostname"
|
|
|
|
|
2021-04-07 10:39:01 +00:00
|
|
|
export KUBECONFIG="$HOME/.kube/config"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2022-12-22 14:05:43 +00:00
|
|
|
#export LOCALE_ARCHIVE="/usr/lib/locale/locale-archive"
|
2022-12-13 01:28:43 +00:00
|
|
|
|
2021-02-23 15:33:23 +00:00
|
|
|
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
|
2022-03-26 14:08:10 +00:00
|
|
|
_makeflags=$(grep -c ^processor /proc/cpuinfo)
|
|
|
|
export MAKEFLAGS="-j$_makeflags"
|
2021-02-23 15:33:23 +00:00
|
|
|
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2022-12-20 00:13:59 +00:00
|
|
|
_whoami=$(whoami)
|
|
|
|
export NIX_PATH="$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/$_whoami/channels${NIX_PATH:+:$NIX_PATH}"
|
2021-02-23 15:33:23 +00:00
|
|
|
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2021-02-27 02:03:19 +00:00
|
|
|
export OPENFAAS_URL="https://faas.serguzim.me"
|
2021-02-23 15:33:23 +00:00
|
|
|
export OSH="$XDG_CONFIG_HOME/bash/oh-my-bash"
|
2020-07-15 13:50:56 +00:00
|
|
|
|
2021-02-13 21:52:08 +00:00
|
|
|
export PASSWORD_STORE_GENERATED_LENGTH='64'
|
2022-12-12 17:43:54 +00:00
|
|
|
# add my paths
|
|
|
|
export PATH="$HOME/.local/bin:$HOME/.bin:$PATH"
|
|
|
|
# add tool paths
|
|
|
|
export PATH="$GOPATH/bin:$HOME/.cargo/bin:$HOME/.local/share/JetBrains/Toolbox/scripts:$PATH"
|
2022-06-30 12:24:33 +00:00
|
|
|
export PS1='\$ '
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2023-02-02 22:26:51 +00:00
|
|
|
#export QT_QPA_PLATFORM="wayland;xcb"
|
|
|
|
export QT_QPA_PLATFORM="xcb"
|
2021-04-09 17:15:28 +00:00
|
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
|
|
|
2022-03-26 14:08:10 +00:00
|
|
|
#export SDL_VIDEODRIVER="wayland"
|
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
export TERMINAL="alacritty"
|
2021-04-16 10:07:15 +00:00
|
|
|
|
2022-07-29 17:22:47 +00:00
|
|
|
export VIMINIT="if has('nvim') | source $XDG_CONFIG_HOME/nvim/init.lua | else | source $XDG_CONFIG_HOME/vim/vimrc | endif"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2022-10-04 20:23:22 +00:00
|
|
|
export WAKATIME_HOME="$XDG_CONFIG_HOME/wakatime"
|
2022-04-20 21:31:37 +00:00
|
|
|
export WOODPECKER_SERVER="https://ci.serguzim.me"
|
|
|
|
|
2021-02-23 15:33:23 +00:00
|
|
|
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
2021-02-13 21:52:08 +00:00
|
|
|
export ZSH="$ZDOTDIR/oh-my-zsh"
|
2021-02-23 15:33:23 +00:00
|
|
|
|
|
|
|
### conditionals
|
|
|
|
|
2022-12-14 14:26:53 +00:00
|
|
|
# shellcheck disable=2089
|
2021-02-23 15:33:23 +00:00
|
|
|
[ -x "$(command -v bat)" ] && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
2022-12-14 14:26:53 +00:00
|
|
|
# shellcheck disable=2090
|
2022-12-13 01:28:43 +00:00
|
|
|
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
|
|
|
|
[ -x "$(command -v moar)" ] && export PAGER="moar"
|
2021-04-30 14:31:30 +00:00
|
|
|
|
2023-02-02 22:26:51 +00:00
|
|
|
[ -x "$(command -v gpgconf)" ] && export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
|
2022-12-22 14:05:43 +00:00
|
|
|
[ -x "$(command -v home-manager)" ] \
|
|
|
|
&& [ -x "$(command -v nix)" ] \
|
|
|
|
&& [ -f "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ] \
|
|
|
|
&& . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
2022-12-20 00:13:59 +00:00
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|