mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
bin: update scripts
This commit is contained in:
parent
01b6276e59
commit
dfd841d36f
3 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
2
bin/upd
2
bin/upd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue