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

View file

@ -7,7 +7,7 @@ if [ -n "$BASH_VERSION" ]; then
fi
fi
export PATH="/usr/local/bin${PATH:+:}$PATH" # ~vern specifics and more
export PATH="/usr/local/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts:$HOME/.local/bin" # ~vern specifics and more
mesg n 2> /dev/null || true
# then import the rest
@ -20,9 +20,6 @@ if [ -f "$HOME/.config/localconfig.env" ]; then
. "$HOME/.config/localconfig.env"
fi
# Added by Toolbox App
export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"
# Import asdf to shell
#export ASDF_DIR="$HOME/.asdf"
#. "$HOME/.asdf/asdf.sh"