chore(global): add some localenv detection on bashrc + README updates

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-10-08 09:26:02 +08:00
parent d94b5c5da3
commit 53bc4b4b9a
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 9 additions and 3 deletions

View file

@ -17,12 +17,17 @@ elif command -v keychain >> /dev/null; then
fi
export GPG_TTY=$(tty)
# how about detecting local configs
if [ -f "$HOME/.config/localconfig.env" ]; then
. "$HOME/.config/localconfig.env"
fi
if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
eval "$(oh-my-posh init bash)"
else
if [[ $PROMPT_THEME == "disabled" ]]; then
true
elif [[ $PROMPT_THEME != "" ]] && [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
elif [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
else
source "$HOME/.config/bash/shell-prompts/vern.bashrc"

View file

@ -11,11 +11,12 @@ curl -fsSL https://scripts.andreijiroh.eu.org/dotfiles/setup.sh | bash -
## Available Git mirrors
This project is hosted on [hosted instance of sourcehut](https://sr.ht) at the
This project is hosted on [hosted instance of sourcehut git](https://git.sr.ht) at the
[`~ajhalili2006/dotfiles`][git.sr.ht] Git repository, alongside the following
Git mirrors:
* mau.dev: <https://mau.dev/andreijiroh.dev/dotfiles>
* mau.dev: <https://mau.dev/andreijiroh.dev/dotfiles> (technically canonical due
to how mirroring work and usualy pushed there first)
* GitHub: <https://github.com/ajhalili2006/dotfiles>
* Launchpad.net: <https://git.launchpad.net/ajhalili2006-dotfiles>
* ~vern git: <https://git.vern.cc/ajhalili2006/dotfiles-modern>