Edit scripts
This commit is contained in:
parent
26f3d3a3f8
commit
a751783e73
|
@ -4,6 +4,6 @@
|
|||
wl-copy -c
|
||||
wl-copy -pc
|
||||
|
||||
# X clipboard (for XWayland)
|
||||
# X clipboard
|
||||
echo -n "" | xclip -selection clipboard -i
|
||||
echo -n "" | xclip -selection primary -i
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
set -e
|
||||
|
||||
pdftk "$1" dump_data_utf8 output meta.txt
|
||||
sed -i 's/^InfoValue:.*$/InfoValue:/g' meta.txt
|
||||
pdftk "$1" update_info meta.txt output "$1.clean.pdf"
|
||||
|
|
|
@ -15,23 +15,14 @@ elif [ "$(uname -o)" = "GNU/Linux" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
command -v flatpak >/dev/null 2>&1 \
|
||||
&& { echo; flatpak update; } || true
|
||||
|
||||
command -v npm >/dev/null 2>&1 \
|
||||
&& { echo; npm update --location=global; } || true
|
||||
|
||||
command -v rustup >/dev/null 2>&1 \
|
||||
&& { echo; rustup update; } || true
|
||||
|
||||
command -v nvim >/dev/null 2>&1 \
|
||||
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
|
||||
|
||||
command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; }
|
||||
command -v npm >/dev/null 2>&1 && { echo; npm update --location=global; }
|
||||
command -v rustup >/dev/null 2>&1 && { echo; rustup update; }
|
||||
command -v nvim >/dev/null 2>&1 && { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
|
||||
command -v docker >/dev/null 2>&1 && [ "$(docker images | wc -l)" -gt 1 ] \
|
||||
&& { echo; docker images \
|
||||
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
|
||||
| xargs -l docker pull; } || true
|
||||
| xargs -l docker pull; }
|
||||
|
||||
echo
|
||||
|
||||
zsh -ic "antidote update && fg &>/dev/null && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"
|
||||
|
|
Loading…
Reference in a new issue