mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-01-19 06:56:39 +00:00
Usual bashrc and profile updates
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
parent
a41e28d091
commit
8c1ebd6de8
5 changed files with 23 additions and 5 deletions
|
@ -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.
|
# ~/.bash_aliases, instead of adding them here directly.
|
||||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
# 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
|
# enable programmable completion features (you don't need to enable
|
||||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
# sources /etc/bash.bashrc).
|
# sources /etc/bash.bashrc).
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/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"
|
export GIT_EDITOR="code-insiders --wait"
|
||||||
|
|
||||||
|
# handled locally via automated-deploy.bashrc
|
||||||
|
#source "${HOME}/.config/bash/tools/nixpkgs.bashrc"
|
||||||
|
|
10
.config/bash/tools/automated-deploy.bashrc
Normal file
10
.config/bash/tools/automated-deploy.bashrc
Normal 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
|
5
.config/bash/tools/nixpkgs.bashrc
Normal file
5
.config/bash/tools/nixpkgs.bashrc
Normal 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
|
5
.profile
5
.profile
|
@ -7,7 +7,7 @@ if [ -n "$BASH_VERSION" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
mesg n 2> /dev/null || true
|
||||||
|
|
||||||
# then import the rest
|
# then import the rest
|
||||||
|
@ -20,9 +20,6 @@ if [ -f "$HOME/.config/localconfig.env" ]; then
|
||||||
. "$HOME/.config/localconfig.env"
|
. "$HOME/.config/localconfig.env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Added by Toolbox App
|
|
||||||
export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"
|
|
||||||
|
|
||||||
# Import asdf to shell
|
# Import asdf to shell
|
||||||
#export ASDF_DIR="$HOME/.asdf"
|
#export ASDF_DIR="$HOME/.asdf"
|
||||||
#. "$HOME/.asdf/asdf.sh"
|
#. "$HOME/.asdf/asdf.sh"
|
||||||
|
|
Loading…
Reference in a new issue