Add punktdateien-bashrc

This commit is contained in:
JeremyStar™ 2024-06-03 02:15:31 +02:00
parent d8762f8ca2
commit 1950a78c90
3 changed files with 15 additions and 1 deletions

View file

@ -16,11 +16,22 @@ function link() {
fi fi
} }
# update/clone repositories
[[ ! -d "repositories/punktdateien-bashrc" ]] && git clone "https://git.staropensource.de/JeremyStarTM/punktdateien-bashrc.git" repositories/punktdateien-bashrc
(
cd repositories/punktdateien-bashrc || (
echo ":: Error: Can't cd into repositories/punktdateien-bashrc"
exit 1
)
git pull
)
# create directories # create directories
#mkdir -p "/unused/" #mkdir -p "/unused/"
# bash configuration # bash configuration
link "lone-files/bashrc" "etc/bash.bashrc" link "lone-files/bashrc" "etc/bash.bashrc"
link "repositories/punktdateien-bashrc" "/etc/bashrc.d"
# locales & stuff # locales & stuff
link "lone-files/locale.gen" "etc/locale.gen" link "lone-files/locale.gen" "etc/locale.gen"

View file

@ -23,6 +23,8 @@ if [[ -r /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion
fi fi
export "BASHRCD_SYSTEM=true"
source "/etc/bashrc.d/startup.sh"
if [ "${UID}" == "0" ]; then if [ "${UID}" == "0" ]; then
env "BASHRC=true" sysdotfiles-updatechecker env "BASHRC=true" sysdotfiles-updatechecker
fi fi

View file

@ -10,13 +10,14 @@ function unlink() {
} }
# repositories # repositories
[[ -n "$REMOVE_REPOSITORIES" ]] && true [[ -n "$REMOVE_REPOSITORIES" ]] && rm -rf repositories
# install bit # install bit
[[ -n "$REMOVE_INSTALLBIT" ]] && rm -rf "/etc/.jstm_dotfiles" [[ -n "$REMOVE_INSTALLBIT" ]] && rm -rf "/etc/.jstm_dotfiles"
# bash configuration # bash configuration
unlink "etc/bash.bashrc" unlink "etc/bash.bashrc"
unlink "etc/bashrc.d"
# locales & stuff # locales & stuff
unlink "etc/locale.gen" unlink "etc/locale.gen"