summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2020-06-28 02:02:59 +0100
committerPeter2020-06-28 02:02:59 +0100
commitb7bc9efd941f6edf6850638a6f923df06b41519d (patch)
tree7d252917ad3d1750a759a34e1d13d63db69786e2
parent689955baf3a8582a95af65ca25c3191c3e27eafd (diff)
downloaddotfiles-b7bc9efd941f6edf6850638a6f923df06b41519d.tar.gz
dotfiles-b7bc9efd941f6edf6850638a6f923df06b41519d.tar.bz2
dotfiles-b7bc9efd941f6edf6850638a6f923df06b41519d.zip
Add zprofile
-rw-r--r--.zprofile11
1 files changed, 11 insertions, 0 deletions
diff --git a/.zprofile b/.zprofile
new file mode 100644
index 0000000..b27039f
--- /dev/null
+++ b/.zprofile
@@ -0,0 +1,11 @@
+# Exports to move certain files around
+export XDG_CONFIG_HOME="$HOME/.config"
+export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
+export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
+export PASSWORD_STORE_DIR="$HOME/vault/pass"
+export LESSHISTFILE="-"
+
+# Startx on boot
+if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
+ exec startx
+fi