From c8eb9fdb4ccae63ac36a55c58c59db8ee5cdfc2f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 21 Jul 2023 20:17:22 +0200 Subject: [PATCH] sh: Fix quoting --- desktop/.config/river/init | 4 ++-- sh/.config/sh/alias.d/enable-fasd-hook.sh | 2 +- sh/.config/sh/env | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index b8afca1..dd51b8e 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -160,8 +160,8 @@ riverctl map normal $mod+Shift Comma send-to-output previous # set up 10 tags (with '0' opening the 10th one) for i in $(seq 0 9); do - tags=$((1 << (i - 1))) - if [ "$i" -eq 0 ]; then tags=$((1 << 9)); fi + tags="$((1 << (i - 1)))" + if [ "$i" -eq 0 ]; then tags="$((1 << 9))"; fi # Mod+[1-9] to focus tag [0-8] riverctl map normal $mod "$i" set-focused-tags $tags diff --git a/sh/.config/sh/alias.d/enable-fasd-hook.sh b/sh/.config/sh/alias.d/enable-fasd-hook.sh index ca239f0..28b7e70 100644 --- a/sh/.config/sh/alias.d/enable-fasd-hook.sh +++ b/sh/.config/sh/alias.d/enable-fasd-hook.sh @@ -1,6 +1,6 @@ #!/bin/sh # more usage instructions at https://github.com/clvv/fasd -# eval "$(fasd --init posix-hook posix_alias bash-hook zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install)" +# exist fasd && eval "$(fasd --init posix-hook posix_alias bash-hook zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install)" exist fasd && eval "$(fasd --init auto)" # any diff --git a/sh/.config/sh/env b/sh/.config/sh/env index febbaec..5ba2ef8 100644 --- a/sh/.config/sh/env +++ b/sh/.config/sh/env @@ -47,7 +47,7 @@ export LC_ALL="en_US.UTF-8" export LANG="en_US.UTF-8" # if we forgot to set it treat bash as default -export SHELL=${SHELL:-/bin/bash} +export SHELL="${SHELL:-/bin/bash}" export TERM=xterm-256color