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
}
# 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
#mkdir -p "/unused/"
# bash configuration
link "lone-files/bashrc" "etc/bash.bashrc"
link "repositories/punktdateien-bashrc" "/etc/bashrc.d"
# locales & stuff
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
fi
export "BASHRCD_SYSTEM=true"
source "/etc/bashrc.d/startup.sh"
if [ "${UID}" == "0" ]; then
env "BASHRC=true" sysdotfiles-updatechecker
fi

View file

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