25 lines
644 B
Text
25 lines
644 B
Text
|
|
#!/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"
|