diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-08 18:32:31 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-08 18:32:31 -0500 |
| commit | f6c68a5a56bb03fa61d80869aa490bc84c06506b (patch) | |
| tree | a0d7bbcd91fe62374446ab65cafd20dbee03d1f4 /dotfiles/system | |
| parent | 8c0a193e163d59a77f85b05ea8a09e7666ed80a6 (diff) | |
adding initial .profile
Diffstat (limited to 'dotfiles/system')
| -rw-r--r-- | dotfiles/system/.profile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dotfiles/system/.profile b/dotfiles/system/.profile new file mode 100644 index 0000000..2ecbbd6 --- /dev/null +++ b/dotfiles/system/.profile @@ -0,0 +1,44 @@ +# .profile - Bourne Shell startup script for login shells +# +# see also sh(1), environ(7). +# + +# These are normally set through /etc/login.conf. You may override them here +# if wanted. +# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH + +# Setting TERM is normally done through /etc/ttys. Do only override +# if you're sure that you'll never log in via telnet or xterm or a +# serial line. +# TERM=xterm; export TERM + +EDITOR=vim; export EDITOR +PAGER=less; export PAGER +TERM=foot; export TERM + +STOW_DIR=~/code/bsdsetup/dotfiles; export STOW_DIR + + +# set ENV to a file invoked each time sh is started for interactive use. +ENV=$HOME/.shrc; export ENV + +# Let sh(1) know it's at home, despite /home being a symlink. +if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi + +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + +# Display a random cookie on each login. +# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi + +# must be here for sway/wayland +# export XDG_RUNTIME_DIR=/var/run/user/`id -u` +export XDG_RUNTIME_DIR=/tmp + +##### ALIASES + +alias cdb="cd ~/code/bsdsetup/" +alias cdd="cd ~/code/bsdsetup/dotfiles/system" + +# allows stow to work from dotfile directories in non-standard locations +alias stow="stow --target=/home/cjennings" |
