summaryrefslogtreecommitdiff
path: root/.config/zsh/.zprofile
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-03-19 17:00:55 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-03-19 17:00:55 -0300
commitb876e4afcab3d01f9207f9f4794828fd8b091d9d (patch)
tree961668cb627df81fc8b75e1041c8d971700d7256 /.config/zsh/.zprofile
parent0749b67fbf4bcffda1ad75d9d343dfc753faf706 (diff)
nvim,zzszh,gpg,i3
Diffstat (limited to '.config/zsh/.zprofile')
-rwxr-xr-x.config/zsh/.zprofile18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile
new file mode 100755
index 0000000..dc89a2e
--- /dev/null
+++ b/.config/zsh/.zprofile
@@ -0,0 +1,18 @@
+if [[ -z "${XDG_RUNTIME_DIR}" ]]; then
+ XDG_RUNTIME_DIR=/tmp/user/$(id -u)
+ if [[ ! -d ${XDG_RUNTIME_DIR} ]]; then
+ mkdir -p ${XDG_RUNTIME_DIR}
+ chmod 700 ${XDG_RUNTIME_DIR}
+ fi
+ export XDG_RUNTIME_DIR
+fi
+
+source ~/.config/zsh/.zshenv
+if [[ -z "${DISPLAY}" ]] && [[ "$(tty)" == "/dev/tty1" ]]; then
+ if [[ -z "${SSH_AGENT_PID}" ]]; then
+ eval $(ssh-agent)
+ fi
+ #exec startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1
+ #openrc -U default
+ exec xinit -- -nolisten tcp -keeptty vt1
+fi