summaryrefslogtreecommitdiff
path: root/.config/shell/profile
blob: f33a58f10ba9b9b95af7cb723d8b0394346911e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/zsh

# profile file. Runs on login. Environmental variables are set here.

# Adds `~/.local/bin` to $PATH
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"

unsetopt PROMPT_SP

. "$HOME/.config/shell/variables"

# 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"