init: Start dotfiles with a test container to verify installation.
This commit is contained in:
commit
9232cf030b
10 changed files with 465 additions and 0 deletions
24
.profile
Normal file
24
.profile
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue