Add auto apply scripts

This commit is contained in:
2025-09-25 13:32:25 +02:00
parent 21bc74e8c5
commit d8d7797817
4 changed files with 79 additions and 1 deletions

15
shell/apply.sh Normal file
View File

@@ -0,0 +1,15 @@
append_to_bashrc() {
local bashrc="$HOME/.bashrc"
for file in "$@"; do
while IFS= read -r line; do
[[ -z "$line" ]] && continue
if ! grep -Fxq "$line" "$bashrc"; then
echo "$line" >> "$bashrc"
echo "Add: $line to bashrc"
fi
done < "$file"
done
}
append_to_bashrc aliases.sh bashrc.sh