mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-03-12 04:43:25 +00:00
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:
parent
d94b5c5da3
commit
53bc4b4b9a
2 changed files with 9 additions and 3 deletions
7
.bashrc
7
.bashrc
|
@ -17,12 +17,17 @@ elif command -v keychain >> /dev/null; then
|
||||||
fi
|
fi
|
||||||
export GPG_TTY=$(tty)
|
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
|
if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
|
||||||
eval "$(oh-my-posh init bash)"
|
eval "$(oh-my-posh init bash)"
|
||||||
else
|
else
|
||||||
if [[ $PROMPT_THEME == "disabled" ]]; then
|
if [[ $PROMPT_THEME == "disabled" ]]; then
|
||||||
true
|
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"
|
source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
|
||||||
else
|
else
|
||||||
source "$HOME/.config/bash/shell-prompts/vern.bashrc"
|
source "$HOME/.config/bash/shell-prompts/vern.bashrc"
|
||||||
|
|
|
@ -11,11 +11,12 @@ curl -fsSL https://scripts.andreijiroh.eu.org/dotfiles/setup.sh | bash -
|
||||||
|
|
||||||
## Available Git mirrors
|
## 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
|
[`~ajhalili2006/dotfiles`][git.sr.ht] Git repository, alongside the following
|
||||||
Git mirrors:
|
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>
|
* GitHub: <https://github.com/ajhalili2006/dotfiles>
|
||||||
* Launchpad.net: <https://git.launchpad.net/ajhalili2006-dotfiles>
|
* Launchpad.net: <https://git.launchpad.net/ajhalili2006-dotfiles>
|
||||||
* ~vern git: <https://git.vern.cc/ajhalili2006/dotfiles-modern>
|
* ~vern git: <https://git.vern.cc/ajhalili2006/dotfiles-modern>
|
||||||
|
|
Loading…
Add table
Reference in a new issue