config: variable adjustments

This commit is contained in:
xeruf 2023-04-07 19:31:59 +02:00
parent 7d2e650a04
commit f8fa6fb67e
5 changed files with 11 additions and 7 deletions

View File

@ -204,9 +204,8 @@ alias scud='systemctl --user disable --now'
# Reload or restart matching systemctl service
unalias scr 2>/dev/null
scr() {
systemctl --user daemon-reload
echo -n "User: " && systemctl --user reload-or-restart "$@" ||
{ echo -n "System: " && sudo systemctl reload-or-restart "$@"; } &&
echo -n "User: " && systemctl --user daemon-reload && systemctl --user reload-or-restart "$@" ||
{ echo -n "System: " && sudo systemctl daemon-reload && sudo systemctl reload-or-restart "$@"; } &&
echo "Successful reload" ||
scs "$@"
}

View File

@ -1,3 +1,4 @@
display_preamble = false
# Don't ask for confirmations
#assume_yes = ["emacs"]

View File

@ -159,7 +159,7 @@ setopt hist_save_no_dups
setopt hist_reduce_blanks
unsetopt hist_ignore_space
zshaddhistory() {
[[ $1 != netkeeper* ]] && [[ $1 != killm* ]]
[[ $1 != netkeeper* ]] && [[ $1 != killm* ]] && [[ $1 != "stretchly reset" ]]
}
setopt sh_word_split

View File

@ -1,9 +1,12 @@
#!/bin/sh -ex
target="${1:-$PWD}"
cd $DATA/5*
tar xf Qobuz-commandes.tar
mv -v *.jpg Qobuz-commandes/
mv -v Qobuz-commandes $target/qobuz #$d4/music/Worship/
mkdir -p qobuz
cd qobuz
tar xf ../Qobuz-commandes.tar
mv -v ../*.jpg . || true
cd ..
mv -v qobuz $target/ #$d4/music/Worship/
rm -i Qobuz-commandes.tar
cd $target/qobuz
find -type d -exec sh -c 'test $(ls "{}" | wc -l) -eq 1 && find "{}" -maxdepth 1 -type f | xargs -i% mv -v % .' \;

View File

@ -1,5 +1,6 @@
#!/bin/sh -e
# Execute commands on a zulip server
# https://zulip.readthedocs.io/en/latest/production/management-commands.html
zulipdepl="/home/zulip/deployments/current"
case $1 in
(upgrade)