include freebsd /usr/home configuration

main
Andrew Coleman 2022-08-12 14:08:48 -04:00
parent f7a6eb1125
commit 00b084023f
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,15 @@ export MOZ_ENABLE_WAYLAND=1
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
{{- if (eq .chezmoi.os "freebsd") -}}
# start in home directory
# shellcheck disable=SC2164
if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
# change $HOME on FreeBSD to /usr/home/andrew
# shellcheck disable=SC2164
if [ -d "/usr$HOME" ] ; then export HOME=/usr$HOME ; cd ; fi
{{ end }}
# User specific aliases and functions
if [ -d "$HOME/.config/bash" ]; then
for rc in $HOME/.config/bash/*; do