Move host-specific configuration

master
Hektor Misplon 2024-09-29 11:38:47 +02:00
parent 6cf696e1f6
commit 393e2c5db5
Signed by: hektor
GPG Key ID: 5151AF79E723F21C
4 changed files with 20 additions and 3 deletions

View File

@ -11,12 +11,12 @@ source /etc/os-release
# Aliases {{{ # Aliases {{{
# Load aliases dynamically # Load aliases dynamically
[ -f "$HOME/.bash_aliases/all" ] && source "$HOME/.bash_aliases/all" [ -f "$HOME/.bash_aliases/all" ] && source "$HOME/.bash_aliases/all"
[ -f "$HOME/.bash_aliases/$HOSTNAME" ] && source "$HOME/.bash_aliases/$HOSTNAME" [ -f "$HOME/.bash_aliases/hosts/$HOSTNAME" ] && source "$HOME/.bash_aliases/hosts/$HOSTNAME"
[ -f "$HOME/.bash_aliases/private" ] && source "$HOME/.bash_aliases/private" [ -f "$HOME/.bash_aliases/private" ] && source "$HOME/.bash_aliases/private"
# }}} # }}}
# Dynamic configuration {{{ # Dynamic configuration {{{
[ -f "$HOME/.bashrc.d/$HOSTNAME" ] && source "$HOME/.bashrc.d/$HOSTNAME" [ -f "$HOME/.bashrc.d/hosts/$HOSTNAME" ] && source "$HOME/.bashrc.d/hosts/$HOSTNAME"
[ -f "$HOME/.bashrc.d/private" ] && source "$HOME/.bashrc.d/private" [ -f "$HOME/.bashrc.d/private" ] && source "$HOME/.bashrc.d/private"
# }}} # }}}

View File

@ -1 +0,0 @@
# Laptop configuration

18
.bashrc.d/hosts/flex-arch Normal file
View File

@ -0,0 +1,18 @@
# Laptop configuration
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE="/usr/bin/micromamba";
export MAMBA_ROOT_PREFIX="/home/h/.local/share/micromamba";
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
if [ -f "/home/h/.local/share/micromamba/etc/profile.d/micromamba.sh" ]; then
. "/home/h/.local/share/micromamba/etc/profile.d/micromamba.sh"
else
export PATH="/home/h/.local/share/micromamba/bin:$PATH" # extra space after export prevents interference from conda init
fi
fi
unset __mamba_setup
# <<< mamba initialize <<<