Usual bashrc and profile updates

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-09-04 23:19:38 +08:00
parent a41e28d091
commit 8c1ebd6de8
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
5 changed files with 23 additions and 5 deletions

View file

@ -68,6 +68,9 @@ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quo
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
source "${HOME}/.config/aliases"
source "${HOME}/.config/bash/tools/automated-deploy.bashrc"
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).

View file

@ -1,4 +1,7 @@
#!/usr/bin/env bash
alias generate-hash="abuild checksum && abuild -r"
alias rehash-and-build="abuild checksum && abuild -r"
export GIT_EDITOR="code-insiders --wait"
# handled locally via automated-deploy.bashrc
#source "${HOME}/.config/bash/tools/nixpkgs.bashrc"

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
for file in "${HOME}"/.config/bash/tools/*.bashrc; do
if [ "$file" == "${HOME}/.config/bash/tools/automated-deploy.bashrc" ]; then
echo "avoiding source loop, skipping $file"
else
[ $DEBUG != "" ] && echo "sourcing $file"
source "$file"
fi
done

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if [[ -d "$HOME/.nix-profile/etc/profile.d/nix.sh" ]] && [[ $FF_DISABLE_NIXPKGS != "true" ]]; then
source "${HOME}/.nix-profile/etc/profile.d/nix.sh"
fi