bin: update scripts

This commit is contained in:
Oleksandr Smirnov 2025-01-20 18:51:08 +02:00
parent 01b6276e59
commit dfd841d36f
No known key found for this signature in database
3 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
sudo pacman -Syyuu --noconfirm
paru -Sua --noconfirm
sudo pacman -Rs "$(pacman -Qdtq | sed 's/\n/ /g')" --noconfirm
sudo pacman -Rs "$(pacman -Qdtq)" --noconfirm

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
p="$HOME/org/roam/daily"
d=$(date +%Y-%m-%d)
[ -d "$p" ] && exec $EDITOR "$p/$d.org"
p="$HOME/Documents/Obsidian/journal"
[ -d "$p" ] && exec $EDITOR "$p/$(date +%Y-%m-%d).md"

View file

@ -9,5 +9,5 @@ upd_scripts=(
for path in "${upd_scripts[@]}"; do
echo -e "\e[32m====== $path\e[0m"
cd "$path" || exit 1
"$path"/"$upd_fname"
"$path"/"$upd_fname" || exit 1
done