mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +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
|
#!/usr/bin/env bash
|
||||||
sudo pacman -Syyuu --noconfirm
|
sudo pacman -Syyuu --noconfirm
|
||||||
paru -Sua --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
|
#!/usr/bin/env bash
|
||||||
p="$HOME/org/roam/daily"
|
p="$HOME/Documents/Obsidian/journal"
|
||||||
d=$(date +%Y-%m-%d)
|
[ -d "$p" ] && exec $EDITOR "$p/$(date +%Y-%m-%d).md"
|
||||||
[ -d "$p" ] && exec $EDITOR "$p/$d.org"
|
|
||||||
|
|
|
||||||
2
bin/upd
2
bin/upd
|
|
@ -9,5 +9,5 @@ upd_scripts=(
|
||||||
for path in "${upd_scripts[@]}"; do
|
for path in "${upd_scripts[@]}"; do
|
||||||
echo -e "\e[32m====== $path\e[0m"
|
echo -e "\e[32m====== $path\e[0m"
|
||||||
cd "$path" || exit 1
|
cd "$path" || exit 1
|
||||||
"$path"/"$upd_fname"
|
"$path"/"$upd_fname" || exit 1
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue