init: Start dotfiles with a test container to verify installation.

This commit is contained in:
Matthew Binning 2025-03-29 14:02:53 -07:00
commit 9232cf030b
10 changed files with 465 additions and 0 deletions

24
.profile Normal file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env sh
# PS1='[\u@\h \W]\$ '
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
export ALIASRC="${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc"
if docker --version > /dev/null 2>&1; then
PS1="\[\033[38;5;34m\]\u@\h \W]\\$\[$(tput sgr0)\] "
export PS1
else
PS1="\[\033[38;5;44m\]\u@\h \W]\\$\[$(tput sgr0)\] "
export PS1
fi
# Git should ask for a password through the command line.
unset GIT_ASKPASS
unset SSH_ASKPASS
# shellcheck source=./.config/aliasrc
[ -f "$ALIASRC" ] && . ./"$ALIASRC"