summaryrefslogtreecommitdiff
path: root/.config/shell/profile
diff options
context:
space:
mode:
authornic <ra@afu.re>2023-12-31 14:24:44 -0500
committernic <ra@afu.re>2023-12-31 14:24:44 -0500
commit84ee878342ebfa109ac547b91616eabbd7bfd30a (patch)
tree8fd84e3d9bece3700d7fec9b68ad13c4367384ec /.config/shell/profile
Initial commit
Diffstat (limited to '.config/shell/profile')
-rw-r--r--.config/shell/profile39
1 files changed, 39 insertions, 0 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
new file mode 100644
index 0000000..4614eee
--- /dev/null
+++ b/.config/shell/profile
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
+#
+#old one
+#export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
+#
+unsetopt PROMPT_SP
+
+# Default programs:
+export EDITOR="nvim"
+export TERMINAL="st"
+export BROWSER="librewolf"
+#export SURFER="qutebrowser"
+
+# ~/ Clean-up:
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CACHE_HOME="$HOME/.cache"
+export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
+export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
+export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/shell/inputrc"
+export LESSHISTFILE="-"
+export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
+export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
+export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
+export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
+export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
+export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
+export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
+export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
+#export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg" # pam-gnupg
+#export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
+export DOAS_ASKPASS="$HOME/.local/bin/dmenupass"
+#start graphical server on user's current tty if not already running.
+[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
+
+# Switch escape and caps lock
+doas loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/ttymaps.kmap 2>/dev/null