config: variable adjustments

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,12 @@
#!/bin/sh -ex #!/bin/sh -ex
target="${1:-$PWD}" target="${1:-$PWD}"
cd $DATA/5* cd $DATA/5*
tar xf Qobuz-commandes.tar mkdir -p qobuz
mv -v *.jpg Qobuz-commandes/ cd qobuz
mv -v Qobuz-commandes $target/qobuz #$d4/music/Worship/ tar xf ../Qobuz-commandes.tar
mv -v ../*.jpg . || true
cd ..
mv -v qobuz $target/ #$d4/music/Worship/
rm -i Qobuz-commandes.tar rm -i Qobuz-commandes.tar
cd $target/qobuz cd $target/qobuz
find -type d -exec sh -c 'test $(ls "{}" | wc -l) -eq 1 && find "{}" -maxdepth 1 -type f | xargs -i% mv -v % .' \; 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 #!/bin/sh -e
# Execute commands on a zulip server # Execute commands on a zulip server
# https://zulip.readthedocs.io/en/latest/production/management-commands.html
zulipdepl="/home/zulip/deployments/current" zulipdepl="/home/zulip/deployments/current"
case $1 in case $1 in
(upgrade) (upgrade)