19 lines
624 B
Bash
19 lines
624 B
Bash
# ~/.zprofile
|
||
#
|
||
|
||
[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim"
|
||
|
||
# Colored less output
|
||
export LESS=-R
|
||
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
|
||
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||
|
||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||
exec startx
|
||
fi
|