openbsd-dots/profile

28 lines
720 B
Bash

#
# .profile - login shell config
# OpenBSD port: removed resizewin (FreeBSD-only), ttyv0 -> ttyC0
#
# environment
EDITOR=vi; export EDITOR
PAGER=less; export PAGER
LANG=en_US.UTF-8; export LANG
CLICOLOR=1; export CLICOLOR
LSCOLORS="ExGxFxDxCxDxDxhbadExEx"; export LSCOLORS
# interactive file for sh(1)/ksh(1)
ENV=$HOME/.shrc; export ENV
# core dumps off
ulimit -c 0
# correct $HOME if entered via symlink
if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ]; then cd; fi
# cargo
if [ -f "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env"; fi
# auto-start X on ttyC0 (first OpenBSD wscons virtual terminal)
if [ "$(tty)" = "/dev/ttyC0" ] && [ -z "$DISPLAY" ]; then
exec startx
fi