-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zprofile
32 lines (27 loc) · 939 Bytes
/
.zprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
# Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path
# Set the list of directories that Zsh searches for programs.
path=(
/usr/local/{bin,sbin}
$HOME/dotfiles/bin
$HOME/secrets/bin
$HOME/bin
$path
)
# Set the Less input preprocessor.
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
if (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi
# Automatically run wayland/xorg on the first virtual terminal. Test a named
# file exists, because in my experience all kinds of autologins are dangerous
# on new, partially broken installs.
if [[ -f "$HOME/.auto-startx" && -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
echo "Sleeping for 3 seconds before starting desktop. Hit Ctrl-C to abort.\n"
sleep 3
# exec startx
exec sway --unsupported-gpu
fi