From 40a87ae6a6353f57b099bd197a05a6fffa47babb Mon Sep 17 00:00:00 2001 From: Rafael Alexander Muijsert Date: Sat, 6 Dec 2025 01:35:28 +0100 Subject: [PATCH] use quiet string matching --- functions/base16-3024.fish | 6 +++--- functions/base16-apathy.fish | 6 +++--- functions/base16-apprentice.fish | 6 +++--- functions/base16-ashes.fish | 6 +++--- functions/base16-atelier-cave-light.fish | 6 +++--- functions/base16-atelier-cave.fish | 6 +++--- functions/base16-atelier-dune-light.fish | 6 +++--- functions/base16-atelier-dune.fish | 6 +++--- functions/base16-atelier-estuary-light.fish | 6 +++--- functions/base16-atelier-estuary.fish | 6 +++--- functions/base16-atelier-forest-light.fish | 6 +++--- functions/base16-atelier-forest.fish | 6 +++--- functions/base16-atelier-heath-light.fish | 6 +++--- functions/base16-atelier-heath.fish | 6 +++--- functions/base16-atelier-lakeside-light.fish | 6 +++--- functions/base16-atelier-lakeside.fish | 6 +++--- functions/base16-atelier-plateau-light.fish | 6 +++--- functions/base16-atelier-plateau.fish | 6 +++--- functions/base16-atelier-savanna-light.fish | 6 +++--- functions/base16-atelier-savanna.fish | 6 +++--- functions/base16-atelier-seaside-light.fish | 6 +++--- functions/base16-atelier-seaside.fish | 6 +++--- functions/base16-atelier-sulphurpool-light.fish | 6 +++--- functions/base16-atelier-sulphurpool.fish | 6 +++--- functions/base16-atlas.fish | 6 +++--- functions/base16-bespin.fish | 6 +++--- functions/base16-black-metal-bathory.fish | 6 +++--- functions/base16-black-metal-burzum.fish | 6 +++--- functions/base16-black-metal-dark-funeral.fish | 6 +++--- functions/base16-black-metal-gorgoroth.fish | 6 +++--- functions/base16-black-metal-immortal.fish | 6 +++--- functions/base16-black-metal-khold.fish | 6 +++--- functions/base16-black-metal-marduk.fish | 6 +++--- functions/base16-black-metal-mayhem.fish | 6 +++--- functions/base16-black-metal-nile.fish | 6 +++--- functions/base16-black-metal-venom.fish | 6 +++--- functions/base16-black-metal.fish | 6 +++--- functions/base16-brewer.fish | 6 +++--- functions/base16-bright.fish | 6 +++--- functions/base16-brogrammer.fish | 6 +++--- functions/base16-brushtrees-dark.fish | 6 +++--- functions/base16-brushtrees.fish | 6 +++--- functions/base16-chalk.fish | 6 +++--- functions/base16-circus.fish | 6 +++--- functions/base16-classic-dark.fish | 6 +++--- functions/base16-classic-light.fish | 6 +++--- functions/base16-codeschool.fish | 6 +++--- functions/base16-colors.fish | 6 +++--- functions/base16-cupcake.fish | 6 +++--- functions/base16-cupertino.fish | 6 +++--- functions/base16-danqing.fish | 6 +++--- functions/base16-darcula.fish | 6 +++--- functions/base16-darkmoss.fish | 6 +++--- functions/base16-darktooth.fish | 6 +++--- functions/base16-darkviolet.fish | 6 +++--- functions/base16-decaf.fish | 6 +++--- functions/base16-default-dark.fish | 6 +++--- functions/base16-default-light.fish | 6 +++--- functions/base16-dirtysea.fish | 6 +++--- functions/base16-dracula.fish | 6 +++--- functions/base16-edge-dark.fish | 6 +++--- functions/base16-edge-light.fish | 6 +++--- functions/base16-eighties.fish | 6 +++--- functions/base16-embers.fish | 6 +++--- functions/base16-equilibrium-dark.fish | 6 +++--- functions/base16-equilibrium-gray-dark.fish | 6 +++--- functions/base16-equilibrium-gray-light.fish | 6 +++--- functions/base16-equilibrium-light.fish | 6 +++--- functions/base16-espresso.fish | 6 +++--- functions/base16-eva-dim.fish | 6 +++--- functions/base16-eva.fish | 6 +++--- functions/base16-flat.fish | 6 +++--- functions/base16-framer.fish | 6 +++--- functions/base16-fruit-soda.fish | 6 +++--- functions/base16-gigavolt.fish | 6 +++--- functions/base16-github.fish | 6 +++--- functions/base16-google-dark.fish | 6 +++--- functions/base16-google-light.fish | 6 +++--- functions/base16-grayscale-dark.fish | 6 +++--- functions/base16-grayscale-light.fish | 6 +++--- functions/base16-greenscreen.fish | 6 +++--- functions/base16-gruvbox-dark-hard.fish | 6 +++--- functions/base16-gruvbox-dark-medium.fish | 6 +++--- functions/base16-gruvbox-dark-pale.fish | 6 +++--- functions/base16-gruvbox-dark-soft.fish | 6 +++--- functions/base16-gruvbox-light-hard.fish | 6 +++--- functions/base16-gruvbox-light-medium.fish | 6 +++--- functions/base16-gruvbox-light-soft.fish | 6 +++--- functions/base16-hardcore.fish | 6 +++--- functions/base16-harmonic-dark.fish | 6 +++--- functions/base16-harmonic-light.fish | 6 +++--- functions/base16-heetch-light.fish | 6 +++--- functions/base16-heetch.fish | 6 +++--- functions/base16-helios.fish | 6 +++--- functions/base16-hopscotch.fish | 6 +++--- functions/base16-horizon-dark.fish | 6 +++--- functions/base16-horizon-light.fish | 6 +++--- functions/base16-horizon-terminal-dark.fish | 6 +++--- functions/base16-horizon-terminal-light.fish | 6 +++--- functions/base16-humanoid-dark.fish | 6 +++--- functions/base16-humanoid-light.fish | 6 +++--- functions/base16-ia-dark.fish | 6 +++--- functions/base16-ia-light.fish | 6 +++--- functions/base16-icy.fish | 6 +++--- functions/base16-irblack.fish | 6 +++--- functions/base16-isotope.fish | 6 +++--- functions/base16-kimber.fish | 6 +++--- functions/base16-macintosh.fish | 6 +++--- functions/base16-marrakesh.fish | 6 +++--- functions/base16-materia.fish | 6 +++--- functions/base16-material-darker.fish | 6 +++--- functions/base16-material-lighter.fish | 6 +++--- functions/base16-material-palenight.fish | 6 +++--- functions/base16-material-vivid.fish | 6 +++--- functions/base16-material.fish | 6 +++--- functions/base16-mellow-purple.fish | 6 +++--- functions/base16-mexico-light.fish | 6 +++--- functions/base16-mocha.fish | 6 +++--- functions/base16-monokai.fish | 6 +++--- functions/base16-nebula.fish | 6 +++--- functions/base16-nord.fish | 6 +++--- functions/base16-nova.fish | 6 +++--- functions/base16-ocean.fish | 6 +++--- functions/base16-oceanicnext.fish | 6 +++--- functions/base16-one-light.fish | 6 +++--- functions/base16-onedark.fish | 6 +++--- functions/base16-outrun-dark.fish | 6 +++--- functions/base16-papercolor-dark.fish | 6 +++--- functions/base16-papercolor-light.fish | 6 +++--- functions/base16-paraiso.fish | 6 +++--- functions/base16-pasque.fish | 6 +++--- functions/base16-phd.fish | 6 +++--- functions/base16-pico.fish | 6 +++--- functions/base16-pinky.fish | 6 +++--- functions/base16-pop.fish | 6 +++--- functions/base16-porple.fish | 6 +++--- functions/base16-qualia.fish | 6 +++--- functions/base16-railscasts.fish | 6 +++--- functions/base16-rebecca.fish | 6 +++--- functions/base16-rose-pine-dawn.fish | 6 +++--- functions/base16-rose-pine-moon.fish | 6 +++--- functions/base16-rose-pine.fish | 6 +++--- functions/base16-sagelight.fish | 6 +++--- functions/base16-sakura.fish | 6 +++--- functions/base16-sandcastle.fish | 6 +++--- functions/base16-seti.fish | 6 +++--- functions/base16-shades-of-purple.fish | 6 +++--- functions/base16-shapeshifter.fish | 6 +++--- functions/base16-silk-dark.fish | 6 +++--- functions/base16-silk-light.fish | 6 +++--- functions/base16-snazzy.fish | 6 +++--- functions/base16-solarflare-light.fish | 6 +++--- functions/base16-solarflare.fish | 6 +++--- functions/base16-solarized-dark.fish | 6 +++--- functions/base16-solarized-light.fish | 6 +++--- functions/base16-spacemacs.fish | 6 +++--- functions/base16-summercamp.fish | 6 +++--- functions/base16-summerfruit-dark.fish | 6 +++--- functions/base16-summerfruit-light.fish | 6 +++--- functions/base16-synth-midnight-dark.fish | 6 +++--- functions/base16-synth-midnight-light.fish | 6 +++--- functions/base16-tango.fish | 6 +++--- functions/base16-tender.fish | 6 +++--- functions/base16-tomorrow-night-eighties.fish | 6 +++--- functions/base16-tomorrow-night.fish | 6 +++--- functions/base16-tomorrow.fish | 6 +++--- functions/base16-tube.fish | 6 +++--- functions/base16-twilight.fish | 6 +++--- functions/base16-unikitty-dark.fish | 6 +++--- functions/base16-unikitty-light.fish | 6 +++--- functions/base16-vulcan.fish | 6 +++--- functions/base16-windows-10-light.fish | 6 +++--- functions/base16-windows-10.fish | 6 +++--- functions/base16-windows-95-light.fish | 6 +++--- functions/base16-windows-95.fish | 6 +++--- functions/base16-windows-highcontrast-light.fish | 6 +++--- functions/base16-windows-highcontrast.fish | 6 +++--- functions/base16-windows-nt-light.fish | 6 +++--- functions/base16-windows-nt.fish | 6 +++--- functions/base16-woodland.fish | 6 +++--- functions/base16-xcode-dusk.fish | 6 +++--- functions/base16-zenburn.fish | 6 +++--- templates/default.mustache | 6 +++--- 183 files changed, 549 insertions(+), 549 deletions(-) diff --git a/functions/base16-3024.fish b/functions/base16-3024.fish index 34ca804..4cf636b 100644 --- a/functions/base16-3024.fish +++ b/functions/base16-3024.fish @@ -34,12 +34,12 @@ function base16-3024 -d "3024" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-3024 -d "3024" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-apathy.fish b/functions/base16-apathy.fish index 3450879..185fdda 100644 --- a/functions/base16-apathy.fish +++ b/functions/base16-apathy.fish @@ -34,12 +34,12 @@ function base16-apathy -d "Apathy" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-apathy -d "Apathy" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-apprentice.fish b/functions/base16-apprentice.fish index 6689cfa..576100a 100644 --- a/functions/base16-apprentice.fish +++ b/functions/base16-apprentice.fish @@ -34,12 +34,12 @@ function base16-apprentice -d "Apprentice" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-apprentice -d "Apprentice" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-ashes.fish b/functions/base16-ashes.fish index c1ce856..45c85a2 100644 --- a/functions/base16-ashes.fish +++ b/functions/base16-ashes.fish @@ -34,12 +34,12 @@ function base16-ashes -d "Ashes" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-ashes -d "Ashes" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-cave-light.fish b/functions/base16-atelier-cave-light.fish index 0583658..9cf5577 100644 --- a/functions/base16-atelier-cave-light.fish +++ b/functions/base16-atelier-cave-light.fish @@ -34,12 +34,12 @@ function base16-atelier-cave-light -d "Atelier Cave Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-cave-light -d "Atelier Cave Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-cave.fish b/functions/base16-atelier-cave.fish index b66b6ee..ced2f4c 100644 --- a/functions/base16-atelier-cave.fish +++ b/functions/base16-atelier-cave.fish @@ -34,12 +34,12 @@ function base16-atelier-cave -d "Atelier Cave" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-cave -d "Atelier Cave" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-dune-light.fish b/functions/base16-atelier-dune-light.fish index 5d6f94e..ce78450 100644 --- a/functions/base16-atelier-dune-light.fish +++ b/functions/base16-atelier-dune-light.fish @@ -34,12 +34,12 @@ function base16-atelier-dune-light -d "Atelier Dune Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-dune-light -d "Atelier Dune Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-dune.fish b/functions/base16-atelier-dune.fish index 36325cc..544549c 100644 --- a/functions/base16-atelier-dune.fish +++ b/functions/base16-atelier-dune.fish @@ -34,12 +34,12 @@ function base16-atelier-dune -d "Atelier Dune" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-dune -d "Atelier Dune" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-estuary-light.fish b/functions/base16-atelier-estuary-light.fish index c133494..6e95fe4 100644 --- a/functions/base16-atelier-estuary-light.fish +++ b/functions/base16-atelier-estuary-light.fish @@ -34,12 +34,12 @@ function base16-atelier-estuary-light -d "Atelier Estuary Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-estuary-light -d "Atelier Estuary Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-estuary.fish b/functions/base16-atelier-estuary.fish index f979d7b..d671738 100644 --- a/functions/base16-atelier-estuary.fish +++ b/functions/base16-atelier-estuary.fish @@ -34,12 +34,12 @@ function base16-atelier-estuary -d "Atelier Estuary" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-estuary -d "Atelier Estuary" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-forest-light.fish b/functions/base16-atelier-forest-light.fish index 9121c2e..7fae446 100644 --- a/functions/base16-atelier-forest-light.fish +++ b/functions/base16-atelier-forest-light.fish @@ -34,12 +34,12 @@ function base16-atelier-forest-light -d "Atelier Forest Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-forest-light -d "Atelier Forest Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-forest.fish b/functions/base16-atelier-forest.fish index 287b822..0cc23db 100644 --- a/functions/base16-atelier-forest.fish +++ b/functions/base16-atelier-forest.fish @@ -34,12 +34,12 @@ function base16-atelier-forest -d "Atelier Forest" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-forest -d "Atelier Forest" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-heath-light.fish b/functions/base16-atelier-heath-light.fish index a546977..071a5fc 100644 --- a/functions/base16-atelier-heath-light.fish +++ b/functions/base16-atelier-heath-light.fish @@ -34,12 +34,12 @@ function base16-atelier-heath-light -d "Atelier Heath Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-heath-light -d "Atelier Heath Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-heath.fish b/functions/base16-atelier-heath.fish index 32934ec..a6ad29c 100644 --- a/functions/base16-atelier-heath.fish +++ b/functions/base16-atelier-heath.fish @@ -34,12 +34,12 @@ function base16-atelier-heath -d "Atelier Heath" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-heath -d "Atelier Heath" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-lakeside-light.fish b/functions/base16-atelier-lakeside-light.fish index e2d1ebc..3f6e6a0 100644 --- a/functions/base16-atelier-lakeside-light.fish +++ b/functions/base16-atelier-lakeside-light.fish @@ -34,12 +34,12 @@ function base16-atelier-lakeside-light -d "Atelier Lakeside Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-lakeside-light -d "Atelier Lakeside Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-lakeside.fish b/functions/base16-atelier-lakeside.fish index cd6c785..eef05f6 100644 --- a/functions/base16-atelier-lakeside.fish +++ b/functions/base16-atelier-lakeside.fish @@ -34,12 +34,12 @@ function base16-atelier-lakeside -d "Atelier Lakeside" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-lakeside -d "Atelier Lakeside" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-plateau-light.fish b/functions/base16-atelier-plateau-light.fish index 9e00a60..0106594 100644 --- a/functions/base16-atelier-plateau-light.fish +++ b/functions/base16-atelier-plateau-light.fish @@ -34,12 +34,12 @@ function base16-atelier-plateau-light -d "Atelier Plateau Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-plateau-light -d "Atelier Plateau Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-plateau.fish b/functions/base16-atelier-plateau.fish index ae755dd..4443a62 100644 --- a/functions/base16-atelier-plateau.fish +++ b/functions/base16-atelier-plateau.fish @@ -34,12 +34,12 @@ function base16-atelier-plateau -d "Atelier Plateau" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-plateau -d "Atelier Plateau" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-savanna-light.fish b/functions/base16-atelier-savanna-light.fish index 4fa949c..ec6a6a8 100644 --- a/functions/base16-atelier-savanna-light.fish +++ b/functions/base16-atelier-savanna-light.fish @@ -34,12 +34,12 @@ function base16-atelier-savanna-light -d "Atelier Savanna Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-savanna-light -d "Atelier Savanna Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-savanna.fish b/functions/base16-atelier-savanna.fish index d384720..e5151a7 100644 --- a/functions/base16-atelier-savanna.fish +++ b/functions/base16-atelier-savanna.fish @@ -34,12 +34,12 @@ function base16-atelier-savanna -d "Atelier Savanna" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-savanna -d "Atelier Savanna" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-seaside-light.fish b/functions/base16-atelier-seaside-light.fish index 1b970a7..17b3153 100644 --- a/functions/base16-atelier-seaside-light.fish +++ b/functions/base16-atelier-seaside-light.fish @@ -34,12 +34,12 @@ function base16-atelier-seaside-light -d "Atelier Seaside Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-seaside-light -d "Atelier Seaside Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-seaside.fish b/functions/base16-atelier-seaside.fish index 3872d63..818c1e6 100644 --- a/functions/base16-atelier-seaside.fish +++ b/functions/base16-atelier-seaside.fish @@ -34,12 +34,12 @@ function base16-atelier-seaside -d "Atelier Seaside" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-seaside -d "Atelier Seaside" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-sulphurpool-light.fish b/functions/base16-atelier-sulphurpool-light.fish index 34896e1..01249ac 100644 --- a/functions/base16-atelier-sulphurpool-light.fish +++ b/functions/base16-atelier-sulphurpool-light.fish @@ -34,12 +34,12 @@ function base16-atelier-sulphurpool-light -d "Atelier Sulphurpool Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-sulphurpool-light -d "Atelier Sulphurpool Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atelier-sulphurpool.fish b/functions/base16-atelier-sulphurpool.fish index e4582ff..308628a 100644 --- a/functions/base16-atelier-sulphurpool.fish +++ b/functions/base16-atelier-sulphurpool.fish @@ -34,12 +34,12 @@ function base16-atelier-sulphurpool -d "Atelier Sulphurpool" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atelier-sulphurpool -d "Atelier Sulphurpool" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-atlas.fish b/functions/base16-atlas.fish index a68a285..d955074 100644 --- a/functions/base16-atlas.fish +++ b/functions/base16-atlas.fish @@ -34,12 +34,12 @@ function base16-atlas -d "Atlas" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-atlas -d "Atlas" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-bespin.fish b/functions/base16-bespin.fish index 2af3f2d..cfa153e 100644 --- a/functions/base16-bespin.fish +++ b/functions/base16-bespin.fish @@ -34,12 +34,12 @@ function base16-bespin -d "Bespin" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-bespin -d "Bespin" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-bathory.fish b/functions/base16-black-metal-bathory.fish index 79f1ef0..e7e6eff 100644 --- a/functions/base16-black-metal-bathory.fish +++ b/functions/base16-black-metal-bathory.fish @@ -34,12 +34,12 @@ function base16-black-metal-bathory -d "Black Metal (Bathory)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-bathory -d "Black Metal (Bathory)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-burzum.fish b/functions/base16-black-metal-burzum.fish index 0d81365..5530304 100644 --- a/functions/base16-black-metal-burzum.fish +++ b/functions/base16-black-metal-burzum.fish @@ -34,12 +34,12 @@ function base16-black-metal-burzum -d "Black Metal (Burzum)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-burzum -d "Black Metal (Burzum)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-dark-funeral.fish b/functions/base16-black-metal-dark-funeral.fish index cf1f553..16c5db7 100644 --- a/functions/base16-black-metal-dark-funeral.fish +++ b/functions/base16-black-metal-dark-funeral.fish @@ -34,12 +34,12 @@ function base16-black-metal-dark-funeral -d "Black Metal (Dark Funeral)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-dark-funeral -d "Black Metal (Dark Funeral)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-gorgoroth.fish b/functions/base16-black-metal-gorgoroth.fish index 532c39d..2b1faf6 100644 --- a/functions/base16-black-metal-gorgoroth.fish +++ b/functions/base16-black-metal-gorgoroth.fish @@ -34,12 +34,12 @@ function base16-black-metal-gorgoroth -d "Black Metal (Gorgoroth)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-gorgoroth -d "Black Metal (Gorgoroth)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-immortal.fish b/functions/base16-black-metal-immortal.fish index 6461816..694a4f8 100644 --- a/functions/base16-black-metal-immortal.fish +++ b/functions/base16-black-metal-immortal.fish @@ -34,12 +34,12 @@ function base16-black-metal-immortal -d "Black Metal (Immortal)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-immortal -d "Black Metal (Immortal)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-khold.fish b/functions/base16-black-metal-khold.fish index 509eb17..735d965 100644 --- a/functions/base16-black-metal-khold.fish +++ b/functions/base16-black-metal-khold.fish @@ -34,12 +34,12 @@ function base16-black-metal-khold -d "Black Metal (Khold)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-khold -d "Black Metal (Khold)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-marduk.fish b/functions/base16-black-metal-marduk.fish index ede9c13..d4477b8 100644 --- a/functions/base16-black-metal-marduk.fish +++ b/functions/base16-black-metal-marduk.fish @@ -34,12 +34,12 @@ function base16-black-metal-marduk -d "Black Metal (Marduk)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-marduk -d "Black Metal (Marduk)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-mayhem.fish b/functions/base16-black-metal-mayhem.fish index df8adbf..a5af327 100644 --- a/functions/base16-black-metal-mayhem.fish +++ b/functions/base16-black-metal-mayhem.fish @@ -34,12 +34,12 @@ function base16-black-metal-mayhem -d "Black Metal (Mayhem)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-mayhem -d "Black Metal (Mayhem)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-nile.fish b/functions/base16-black-metal-nile.fish index f48a30d..c12a338 100644 --- a/functions/base16-black-metal-nile.fish +++ b/functions/base16-black-metal-nile.fish @@ -34,12 +34,12 @@ function base16-black-metal-nile -d "Black Metal (Nile)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-nile -d "Black Metal (Nile)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal-venom.fish b/functions/base16-black-metal-venom.fish index d126aa5..c961f8d 100644 --- a/functions/base16-black-metal-venom.fish +++ b/functions/base16-black-metal-venom.fish @@ -34,12 +34,12 @@ function base16-black-metal-venom -d "Black Metal (Venom)" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal-venom -d "Black Metal (Venom)" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-black-metal.fish b/functions/base16-black-metal.fish index 941cda5..eb54885 100644 --- a/functions/base16-black-metal.fish +++ b/functions/base16-black-metal.fish @@ -34,12 +34,12 @@ function base16-black-metal -d "Black Metal" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-black-metal -d "Black Metal" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-brewer.fish b/functions/base16-brewer.fish index 641ddd5..0476b62 100644 --- a/functions/base16-brewer.fish +++ b/functions/base16-brewer.fish @@ -34,12 +34,12 @@ function base16-brewer -d "Brewer" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-brewer -d "Brewer" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-bright.fish b/functions/base16-bright.fish index ace4385..0642160 100644 --- a/functions/base16-bright.fish +++ b/functions/base16-bright.fish @@ -34,12 +34,12 @@ function base16-bright -d "Bright" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-bright -d "Bright" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-brogrammer.fish b/functions/base16-brogrammer.fish index 0580683..e89cb8a 100644 --- a/functions/base16-brogrammer.fish +++ b/functions/base16-brogrammer.fish @@ -34,12 +34,12 @@ function base16-brogrammer -d "Brogrammer" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-brogrammer -d "Brogrammer" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-brushtrees-dark.fish b/functions/base16-brushtrees-dark.fish index e498b5f..bcaee11 100644 --- a/functions/base16-brushtrees-dark.fish +++ b/functions/base16-brushtrees-dark.fish @@ -34,12 +34,12 @@ function base16-brushtrees-dark -d "Brush Trees Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-brushtrees-dark -d "Brush Trees Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-brushtrees.fish b/functions/base16-brushtrees.fish index 37ea482..04249fc 100644 --- a/functions/base16-brushtrees.fish +++ b/functions/base16-brushtrees.fish @@ -34,12 +34,12 @@ function base16-brushtrees -d "Brush Trees" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-brushtrees -d "Brush Trees" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-chalk.fish b/functions/base16-chalk.fish index 7492799..dffed02 100644 --- a/functions/base16-chalk.fish +++ b/functions/base16-chalk.fish @@ -34,12 +34,12 @@ function base16-chalk -d "Chalk" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-chalk -d "Chalk" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-circus.fish b/functions/base16-circus.fish index 3522279..e5b0bc1 100644 --- a/functions/base16-circus.fish +++ b/functions/base16-circus.fish @@ -34,12 +34,12 @@ function base16-circus -d "Circus" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-circus -d "Circus" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-classic-dark.fish b/functions/base16-classic-dark.fish index f018b98..a13fe9d 100644 --- a/functions/base16-classic-dark.fish +++ b/functions/base16-classic-dark.fish @@ -34,12 +34,12 @@ function base16-classic-dark -d "Classic Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-classic-dark -d "Classic Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-classic-light.fish b/functions/base16-classic-light.fish index 2cd385a..5a430b2 100644 --- a/functions/base16-classic-light.fish +++ b/functions/base16-classic-light.fish @@ -34,12 +34,12 @@ function base16-classic-light -d "Classic Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-classic-light -d "Classic Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-codeschool.fish b/functions/base16-codeschool.fish index e05e17d..0b67c39 100644 --- a/functions/base16-codeschool.fish +++ b/functions/base16-codeschool.fish @@ -34,12 +34,12 @@ function base16-codeschool -d "Codeschool" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-codeschool -d "Codeschool" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-colors.fish b/functions/base16-colors.fish index d08ae10..96b36dc 100644 --- a/functions/base16-colors.fish +++ b/functions/base16-colors.fish @@ -34,12 +34,12 @@ function base16-colors -d "Colors" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-colors -d "Colors" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-cupcake.fish b/functions/base16-cupcake.fish index 4ad0996..e76a6d8 100644 --- a/functions/base16-cupcake.fish +++ b/functions/base16-cupcake.fish @@ -34,12 +34,12 @@ function base16-cupcake -d "Cupcake" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-cupcake -d "Cupcake" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-cupertino.fish b/functions/base16-cupertino.fish index 955aaaa..87c5912 100644 --- a/functions/base16-cupertino.fish +++ b/functions/base16-cupertino.fish @@ -34,12 +34,12 @@ function base16-cupertino -d "Cupertino" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-cupertino -d "Cupertino" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-danqing.fish b/functions/base16-danqing.fish index d841da4..943bbcb 100644 --- a/functions/base16-danqing.fish +++ b/functions/base16-danqing.fish @@ -34,12 +34,12 @@ function base16-danqing -d "DanQing" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-danqing -d "DanQing" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-darcula.fish b/functions/base16-darcula.fish index 9ee4d86..428f3f5 100644 --- a/functions/base16-darcula.fish +++ b/functions/base16-darcula.fish @@ -34,12 +34,12 @@ function base16-darcula -d "Darcula" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-darcula -d "Darcula" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-darkmoss.fish b/functions/base16-darkmoss.fish index 35df9b8..8fb0a80 100644 --- a/functions/base16-darkmoss.fish +++ b/functions/base16-darkmoss.fish @@ -34,12 +34,12 @@ function base16-darkmoss -d "darkmoss" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-darkmoss -d "darkmoss" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-darktooth.fish b/functions/base16-darktooth.fish index f817366..2b3920b 100644 --- a/functions/base16-darktooth.fish +++ b/functions/base16-darktooth.fish @@ -34,12 +34,12 @@ function base16-darktooth -d "Darktooth" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-darktooth -d "Darktooth" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-darkviolet.fish b/functions/base16-darkviolet.fish index 2ff30fc..4dd9322 100644 --- a/functions/base16-darkviolet.fish +++ b/functions/base16-darkviolet.fish @@ -34,12 +34,12 @@ function base16-darkviolet -d "Dark Violet" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-darkviolet -d "Dark Violet" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-decaf.fish b/functions/base16-decaf.fish index d4b8d96..ae833df 100644 --- a/functions/base16-decaf.fish +++ b/functions/base16-decaf.fish @@ -34,12 +34,12 @@ function base16-decaf -d "Decaf" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-decaf -d "Decaf" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-default-dark.fish b/functions/base16-default-dark.fish index 8c0d760..11af73b 100644 --- a/functions/base16-default-dark.fish +++ b/functions/base16-default-dark.fish @@ -34,12 +34,12 @@ function base16-default-dark -d "Default Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-default-dark -d "Default Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-default-light.fish b/functions/base16-default-light.fish index 019c1d6..116d87e 100644 --- a/functions/base16-default-light.fish +++ b/functions/base16-default-light.fish @@ -34,12 +34,12 @@ function base16-default-light -d "Default Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-default-light -d "Default Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-dirtysea.fish b/functions/base16-dirtysea.fish index b0dfd0f..c6ba7f2 100644 --- a/functions/base16-dirtysea.fish +++ b/functions/base16-dirtysea.fish @@ -34,12 +34,12 @@ function base16-dirtysea -d "dirtysea" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-dirtysea -d "dirtysea" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-dracula.fish b/functions/base16-dracula.fish index 8615aa6..ad92132 100644 --- a/functions/base16-dracula.fish +++ b/functions/base16-dracula.fish @@ -34,12 +34,12 @@ function base16-dracula -d "Dracula" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-dracula -d "Dracula" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-edge-dark.fish b/functions/base16-edge-dark.fish index 7e15872..13531f0 100644 --- a/functions/base16-edge-dark.fish +++ b/functions/base16-edge-dark.fish @@ -34,12 +34,12 @@ function base16-edge-dark -d "Edge Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-edge-dark -d "Edge Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-edge-light.fish b/functions/base16-edge-light.fish index c740f8f..0da7af6 100644 --- a/functions/base16-edge-light.fish +++ b/functions/base16-edge-light.fish @@ -34,12 +34,12 @@ function base16-edge-light -d "Edge Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-edge-light -d "Edge Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-eighties.fish b/functions/base16-eighties.fish index 7678990..252bbdb 100644 --- a/functions/base16-eighties.fish +++ b/functions/base16-eighties.fish @@ -34,12 +34,12 @@ function base16-eighties -d "Eighties" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-eighties -d "Eighties" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-embers.fish b/functions/base16-embers.fish index 8ef6a60..ca992a3 100644 --- a/functions/base16-embers.fish +++ b/functions/base16-embers.fish @@ -34,12 +34,12 @@ function base16-embers -d "Embers" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-embers -d "Embers" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-equilibrium-dark.fish b/functions/base16-equilibrium-dark.fish index 3dccc50..576f21d 100644 --- a/functions/base16-equilibrium-dark.fish +++ b/functions/base16-equilibrium-dark.fish @@ -34,12 +34,12 @@ function base16-equilibrium-dark -d "Equilibrium Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-equilibrium-dark -d "Equilibrium Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-equilibrium-gray-dark.fish b/functions/base16-equilibrium-gray-dark.fish index 1127c57..3c36e4e 100644 --- a/functions/base16-equilibrium-gray-dark.fish +++ b/functions/base16-equilibrium-gray-dark.fish @@ -34,12 +34,12 @@ function base16-equilibrium-gray-dark -d "Equilibrium Gray Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-equilibrium-gray-dark -d "Equilibrium Gray Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-equilibrium-gray-light.fish b/functions/base16-equilibrium-gray-light.fish index a86f31a..c9426fc 100644 --- a/functions/base16-equilibrium-gray-light.fish +++ b/functions/base16-equilibrium-gray-light.fish @@ -34,12 +34,12 @@ function base16-equilibrium-gray-light -d "Equilibrium Gray Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-equilibrium-gray-light -d "Equilibrium Gray Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-equilibrium-light.fish b/functions/base16-equilibrium-light.fish index 1cf3e2b..856bf19 100644 --- a/functions/base16-equilibrium-light.fish +++ b/functions/base16-equilibrium-light.fish @@ -34,12 +34,12 @@ function base16-equilibrium-light -d "Equilibrium Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-equilibrium-light -d "Equilibrium Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-espresso.fish b/functions/base16-espresso.fish index fbc9fa9..135db50 100644 --- a/functions/base16-espresso.fish +++ b/functions/base16-espresso.fish @@ -34,12 +34,12 @@ function base16-espresso -d "Espresso" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-espresso -d "Espresso" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-eva-dim.fish b/functions/base16-eva-dim.fish index 513f93e..03b05eb 100644 --- a/functions/base16-eva-dim.fish +++ b/functions/base16-eva-dim.fish @@ -34,12 +34,12 @@ function base16-eva-dim -d "Eva Dim" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-eva-dim -d "Eva Dim" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-eva.fish b/functions/base16-eva.fish index 0a92927..4c557e2 100644 --- a/functions/base16-eva.fish +++ b/functions/base16-eva.fish @@ -34,12 +34,12 @@ function base16-eva -d "Eva" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-eva -d "Eva" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-flat.fish b/functions/base16-flat.fish index a6632eb..b6fc7e1 100644 --- a/functions/base16-flat.fish +++ b/functions/base16-flat.fish @@ -34,12 +34,12 @@ function base16-flat -d "Flat" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-flat -d "Flat" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-framer.fish b/functions/base16-framer.fish index bd7133a..2b49412 100644 --- a/functions/base16-framer.fish +++ b/functions/base16-framer.fish @@ -34,12 +34,12 @@ function base16-framer -d "Framer" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-framer -d "Framer" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-fruit-soda.fish b/functions/base16-fruit-soda.fish index a01a1e6..321b004 100644 --- a/functions/base16-fruit-soda.fish +++ b/functions/base16-fruit-soda.fish @@ -34,12 +34,12 @@ function base16-fruit-soda -d "Fruit Soda" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-fruit-soda -d "Fruit Soda" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gigavolt.fish b/functions/base16-gigavolt.fish index 1092e76..73ac898 100644 --- a/functions/base16-gigavolt.fish +++ b/functions/base16-gigavolt.fish @@ -34,12 +34,12 @@ function base16-gigavolt -d "Gigavolt" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gigavolt -d "Gigavolt" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-github.fish b/functions/base16-github.fish index 00cdc64..b55ef62 100644 --- a/functions/base16-github.fish +++ b/functions/base16-github.fish @@ -34,12 +34,12 @@ function base16-github -d "Github" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-github -d "Github" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-google-dark.fish b/functions/base16-google-dark.fish index e1568c0..652494c 100644 --- a/functions/base16-google-dark.fish +++ b/functions/base16-google-dark.fish @@ -34,12 +34,12 @@ function base16-google-dark -d "Google Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-google-dark -d "Google Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-google-light.fish b/functions/base16-google-light.fish index 42cfcd8..2324b76 100644 --- a/functions/base16-google-light.fish +++ b/functions/base16-google-light.fish @@ -34,12 +34,12 @@ function base16-google-light -d "Google Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-google-light -d "Google Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-grayscale-dark.fish b/functions/base16-grayscale-dark.fish index c1e93ab..11b3473 100644 --- a/functions/base16-grayscale-dark.fish +++ b/functions/base16-grayscale-dark.fish @@ -34,12 +34,12 @@ function base16-grayscale-dark -d "Grayscale Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-grayscale-dark -d "Grayscale Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-grayscale-light.fish b/functions/base16-grayscale-light.fish index a3606ee..d27cde0 100644 --- a/functions/base16-grayscale-light.fish +++ b/functions/base16-grayscale-light.fish @@ -34,12 +34,12 @@ function base16-grayscale-light -d "Grayscale Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-grayscale-light -d "Grayscale Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-greenscreen.fish b/functions/base16-greenscreen.fish index 7710681..347c818 100644 --- a/functions/base16-greenscreen.fish +++ b/functions/base16-greenscreen.fish @@ -34,12 +34,12 @@ function base16-greenscreen -d "Green Screen" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-greenscreen -d "Green Screen" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-dark-hard.fish b/functions/base16-gruvbox-dark-hard.fish index a91e590..0ed37af 100644 --- a/functions/base16-gruvbox-dark-hard.fish +++ b/functions/base16-gruvbox-dark-hard.fish @@ -34,12 +34,12 @@ function base16-gruvbox-dark-hard -d "Gruvbox dark, hard" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-dark-hard -d "Gruvbox dark, hard" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-dark-medium.fish b/functions/base16-gruvbox-dark-medium.fish index 840a06c..bef72f0 100644 --- a/functions/base16-gruvbox-dark-medium.fish +++ b/functions/base16-gruvbox-dark-medium.fish @@ -34,12 +34,12 @@ function base16-gruvbox-dark-medium -d "Gruvbox dark, medium" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-dark-medium -d "Gruvbox dark, medium" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-dark-pale.fish b/functions/base16-gruvbox-dark-pale.fish index 9a29b55..4137093 100644 --- a/functions/base16-gruvbox-dark-pale.fish +++ b/functions/base16-gruvbox-dark-pale.fish @@ -34,12 +34,12 @@ function base16-gruvbox-dark-pale -d "Gruvbox dark, pale" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-dark-pale -d "Gruvbox dark, pale" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-dark-soft.fish b/functions/base16-gruvbox-dark-soft.fish index 233fd74..6800e65 100644 --- a/functions/base16-gruvbox-dark-soft.fish +++ b/functions/base16-gruvbox-dark-soft.fish @@ -34,12 +34,12 @@ function base16-gruvbox-dark-soft -d "Gruvbox dark, soft" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-dark-soft -d "Gruvbox dark, soft" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-light-hard.fish b/functions/base16-gruvbox-light-hard.fish index 6eca230..a85d0fc 100644 --- a/functions/base16-gruvbox-light-hard.fish +++ b/functions/base16-gruvbox-light-hard.fish @@ -34,12 +34,12 @@ function base16-gruvbox-light-hard -d "Gruvbox light, hard" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-light-hard -d "Gruvbox light, hard" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-light-medium.fish b/functions/base16-gruvbox-light-medium.fish index 53538a9..af099b5 100644 --- a/functions/base16-gruvbox-light-medium.fish +++ b/functions/base16-gruvbox-light-medium.fish @@ -34,12 +34,12 @@ function base16-gruvbox-light-medium -d "Gruvbox light, medium" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-light-medium -d "Gruvbox light, medium" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-gruvbox-light-soft.fish b/functions/base16-gruvbox-light-soft.fish index 0e881f7..d019112 100644 --- a/functions/base16-gruvbox-light-soft.fish +++ b/functions/base16-gruvbox-light-soft.fish @@ -34,12 +34,12 @@ function base16-gruvbox-light-soft -d "Gruvbox light, soft" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-gruvbox-light-soft -d "Gruvbox light, soft" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-hardcore.fish b/functions/base16-hardcore.fish index c989b0a..9aa377c 100644 --- a/functions/base16-hardcore.fish +++ b/functions/base16-hardcore.fish @@ -34,12 +34,12 @@ function base16-hardcore -d "Hardcore" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-hardcore -d "Hardcore" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-harmonic-dark.fish b/functions/base16-harmonic-dark.fish index 200487c..f92f631 100644 --- a/functions/base16-harmonic-dark.fish +++ b/functions/base16-harmonic-dark.fish @@ -34,12 +34,12 @@ function base16-harmonic-dark -d "Harmonic16 Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-harmonic-dark -d "Harmonic16 Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-harmonic-light.fish b/functions/base16-harmonic-light.fish index 3a2261e..63dbc8c 100644 --- a/functions/base16-harmonic-light.fish +++ b/functions/base16-harmonic-light.fish @@ -34,12 +34,12 @@ function base16-harmonic-light -d "Harmonic16 Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-harmonic-light -d "Harmonic16 Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-heetch-light.fish b/functions/base16-heetch-light.fish index d8addd5..e59e752 100644 --- a/functions/base16-heetch-light.fish +++ b/functions/base16-heetch-light.fish @@ -34,12 +34,12 @@ function base16-heetch-light -d "Heetch Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-heetch-light -d "Heetch Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-heetch.fish b/functions/base16-heetch.fish index 2310e95..54bf4d1 100644 --- a/functions/base16-heetch.fish +++ b/functions/base16-heetch.fish @@ -34,12 +34,12 @@ function base16-heetch -d "Heetch Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-heetch -d "Heetch Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-helios.fish b/functions/base16-helios.fish index cd9ba54..55bd9e8 100644 --- a/functions/base16-helios.fish +++ b/functions/base16-helios.fish @@ -34,12 +34,12 @@ function base16-helios -d "Helios" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-helios -d "Helios" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-hopscotch.fish b/functions/base16-hopscotch.fish index 3959091..9707d99 100644 --- a/functions/base16-hopscotch.fish +++ b/functions/base16-hopscotch.fish @@ -34,12 +34,12 @@ function base16-hopscotch -d "Hopscotch" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-hopscotch -d "Hopscotch" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-horizon-dark.fish b/functions/base16-horizon-dark.fish index efead0d..7b8d5ae 100644 --- a/functions/base16-horizon-dark.fish +++ b/functions/base16-horizon-dark.fish @@ -34,12 +34,12 @@ function base16-horizon-dark -d "Horizon Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-horizon-dark -d "Horizon Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-horizon-light.fish b/functions/base16-horizon-light.fish index f78ca56..c9602aa 100644 --- a/functions/base16-horizon-light.fish +++ b/functions/base16-horizon-light.fish @@ -34,12 +34,12 @@ function base16-horizon-light -d "Horizon Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-horizon-light -d "Horizon Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-horizon-terminal-dark.fish b/functions/base16-horizon-terminal-dark.fish index 09a50dc..48a7119 100644 --- a/functions/base16-horizon-terminal-dark.fish +++ b/functions/base16-horizon-terminal-dark.fish @@ -34,12 +34,12 @@ function base16-horizon-terminal-dark -d "Horizon Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-horizon-terminal-dark -d "Horizon Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-horizon-terminal-light.fish b/functions/base16-horizon-terminal-light.fish index 1cffe64..7022a74 100644 --- a/functions/base16-horizon-terminal-light.fish +++ b/functions/base16-horizon-terminal-light.fish @@ -34,12 +34,12 @@ function base16-horizon-terminal-light -d "Horizon Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-horizon-terminal-light -d "Horizon Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-humanoid-dark.fish b/functions/base16-humanoid-dark.fish index d8fbaf3..1005a31 100644 --- a/functions/base16-humanoid-dark.fish +++ b/functions/base16-humanoid-dark.fish @@ -34,12 +34,12 @@ function base16-humanoid-dark -d "Humanoid dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-humanoid-dark -d "Humanoid dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-humanoid-light.fish b/functions/base16-humanoid-light.fish index 3644165..2823dca 100644 --- a/functions/base16-humanoid-light.fish +++ b/functions/base16-humanoid-light.fish @@ -34,12 +34,12 @@ function base16-humanoid-light -d "Humanoid light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-humanoid-light -d "Humanoid light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-ia-dark.fish b/functions/base16-ia-dark.fish index 6b5aeff..2e11b86 100644 --- a/functions/base16-ia-dark.fish +++ b/functions/base16-ia-dark.fish @@ -34,12 +34,12 @@ function base16-ia-dark -d "iA Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-ia-dark -d "iA Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-ia-light.fish b/functions/base16-ia-light.fish index 9c292e5..4271323 100644 --- a/functions/base16-ia-light.fish +++ b/functions/base16-ia-light.fish @@ -34,12 +34,12 @@ function base16-ia-light -d "iA Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-ia-light -d "iA Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-icy.fish b/functions/base16-icy.fish index 96672b8..d060857 100644 --- a/functions/base16-icy.fish +++ b/functions/base16-icy.fish @@ -34,12 +34,12 @@ function base16-icy -d "Icy Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-icy -d "Icy Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-irblack.fish b/functions/base16-irblack.fish index 77ed94a..27afddc 100644 --- a/functions/base16-irblack.fish +++ b/functions/base16-irblack.fish @@ -34,12 +34,12 @@ function base16-irblack -d "IR Black" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-irblack -d "IR Black" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-isotope.fish b/functions/base16-isotope.fish index c254258..e18b607 100644 --- a/functions/base16-isotope.fish +++ b/functions/base16-isotope.fish @@ -34,12 +34,12 @@ function base16-isotope -d "Isotope" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-isotope -d "Isotope" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-kimber.fish b/functions/base16-kimber.fish index 6cb393d..384011c 100644 --- a/functions/base16-kimber.fish +++ b/functions/base16-kimber.fish @@ -34,12 +34,12 @@ function base16-kimber -d "Kimber" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-kimber -d "Kimber" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-macintosh.fish b/functions/base16-macintosh.fish index f88a18d..f07101b 100644 --- a/functions/base16-macintosh.fish +++ b/functions/base16-macintosh.fish @@ -34,12 +34,12 @@ function base16-macintosh -d "Macintosh" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-macintosh -d "Macintosh" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-marrakesh.fish b/functions/base16-marrakesh.fish index dfe9496..c00828e 100644 --- a/functions/base16-marrakesh.fish +++ b/functions/base16-marrakesh.fish @@ -34,12 +34,12 @@ function base16-marrakesh -d "Marrakesh" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-marrakesh -d "Marrakesh" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-materia.fish b/functions/base16-materia.fish index 5699c0a..bc3ce04 100644 --- a/functions/base16-materia.fish +++ b/functions/base16-materia.fish @@ -34,12 +34,12 @@ function base16-materia -d "Materia" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-materia -d "Materia" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-material-darker.fish b/functions/base16-material-darker.fish index 85a95ed..fd45c10 100644 --- a/functions/base16-material-darker.fish +++ b/functions/base16-material-darker.fish @@ -34,12 +34,12 @@ function base16-material-darker -d "Material Darker" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-material-darker -d "Material Darker" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-material-lighter.fish b/functions/base16-material-lighter.fish index 0a4c194..de49968 100644 --- a/functions/base16-material-lighter.fish +++ b/functions/base16-material-lighter.fish @@ -34,12 +34,12 @@ function base16-material-lighter -d "Material Lighter" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-material-lighter -d "Material Lighter" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-material-palenight.fish b/functions/base16-material-palenight.fish index cbdd898..e5a9e2f 100644 --- a/functions/base16-material-palenight.fish +++ b/functions/base16-material-palenight.fish @@ -34,12 +34,12 @@ function base16-material-palenight -d "Material Palenight" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-material-palenight -d "Material Palenight" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-material-vivid.fish b/functions/base16-material-vivid.fish index 5f217b1..619f463 100644 --- a/functions/base16-material-vivid.fish +++ b/functions/base16-material-vivid.fish @@ -34,12 +34,12 @@ function base16-material-vivid -d "Material Vivid" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-material-vivid -d "Material Vivid" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-material.fish b/functions/base16-material.fish index b063239..06a054d 100644 --- a/functions/base16-material.fish +++ b/functions/base16-material.fish @@ -34,12 +34,12 @@ function base16-material -d "Material" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-material -d "Material" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-mellow-purple.fish b/functions/base16-mellow-purple.fish index 253c4c9..354a028 100644 --- a/functions/base16-mellow-purple.fish +++ b/functions/base16-mellow-purple.fish @@ -34,12 +34,12 @@ function base16-mellow-purple -d "Mellow Purple" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-mellow-purple -d "Mellow Purple" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-mexico-light.fish b/functions/base16-mexico-light.fish index 8e05c00..b0bd53d 100644 --- a/functions/base16-mexico-light.fish +++ b/functions/base16-mexico-light.fish @@ -34,12 +34,12 @@ function base16-mexico-light -d "Mexico Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-mexico-light -d "Mexico Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-mocha.fish b/functions/base16-mocha.fish index ff4832a..65e17ac 100644 --- a/functions/base16-mocha.fish +++ b/functions/base16-mocha.fish @@ -34,12 +34,12 @@ function base16-mocha -d "Mocha" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-mocha -d "Mocha" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-monokai.fish b/functions/base16-monokai.fish index dffaf8a..858bd1a 100644 --- a/functions/base16-monokai.fish +++ b/functions/base16-monokai.fish @@ -34,12 +34,12 @@ function base16-monokai -d "Monokai" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-monokai -d "Monokai" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-nebula.fish b/functions/base16-nebula.fish index e6df0ca..084096f 100644 --- a/functions/base16-nebula.fish +++ b/functions/base16-nebula.fish @@ -34,12 +34,12 @@ function base16-nebula -d "Nebula" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-nebula -d "Nebula" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-nord.fish b/functions/base16-nord.fish index e20778f..14a60bb 100644 --- a/functions/base16-nord.fish +++ b/functions/base16-nord.fish @@ -34,12 +34,12 @@ function base16-nord -d "Nord" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-nord -d "Nord" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-nova.fish b/functions/base16-nova.fish index a9b4582..cf4eba0 100644 --- a/functions/base16-nova.fish +++ b/functions/base16-nova.fish @@ -34,12 +34,12 @@ function base16-nova -d "Nova" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-nova -d "Nova" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-ocean.fish b/functions/base16-ocean.fish index 33e20a5..e058813 100644 --- a/functions/base16-ocean.fish +++ b/functions/base16-ocean.fish @@ -34,12 +34,12 @@ function base16-ocean -d "Ocean" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-ocean -d "Ocean" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-oceanicnext.fish b/functions/base16-oceanicnext.fish index ca6ae81..46d219b 100644 --- a/functions/base16-oceanicnext.fish +++ b/functions/base16-oceanicnext.fish @@ -34,12 +34,12 @@ function base16-oceanicnext -d "OceanicNext" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-oceanicnext -d "OceanicNext" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-one-light.fish b/functions/base16-one-light.fish index 6b27340..0f3b7db 100644 --- a/functions/base16-one-light.fish +++ b/functions/base16-one-light.fish @@ -34,12 +34,12 @@ function base16-one-light -d "One Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-one-light -d "One Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-onedark.fish b/functions/base16-onedark.fish index 0754dc3..8405106 100644 --- a/functions/base16-onedark.fish +++ b/functions/base16-onedark.fish @@ -34,12 +34,12 @@ function base16-onedark -d "OneDark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-onedark -d "OneDark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-outrun-dark.fish b/functions/base16-outrun-dark.fish index a9164ca..7653752 100644 --- a/functions/base16-outrun-dark.fish +++ b/functions/base16-outrun-dark.fish @@ -34,12 +34,12 @@ function base16-outrun-dark -d "Outrun Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-outrun-dark -d "Outrun Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-papercolor-dark.fish b/functions/base16-papercolor-dark.fish index 48cf456..d3ffa15 100644 --- a/functions/base16-papercolor-dark.fish +++ b/functions/base16-papercolor-dark.fish @@ -34,12 +34,12 @@ function base16-papercolor-dark -d "PaperColor Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-papercolor-dark -d "PaperColor Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-papercolor-light.fish b/functions/base16-papercolor-light.fish index 877ef5e..5309bfa 100644 --- a/functions/base16-papercolor-light.fish +++ b/functions/base16-papercolor-light.fish @@ -34,12 +34,12 @@ function base16-papercolor-light -d "PaperColor Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-papercolor-light -d "PaperColor Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-paraiso.fish b/functions/base16-paraiso.fish index b95613f..932dbc7 100644 --- a/functions/base16-paraiso.fish +++ b/functions/base16-paraiso.fish @@ -34,12 +34,12 @@ function base16-paraiso -d "Paraiso" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-paraiso -d "Paraiso" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-pasque.fish b/functions/base16-pasque.fish index 49cab30..10509d7 100644 --- a/functions/base16-pasque.fish +++ b/functions/base16-pasque.fish @@ -34,12 +34,12 @@ function base16-pasque -d "Pasque" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-pasque -d "Pasque" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-phd.fish b/functions/base16-phd.fish index 9c09c8d..37c84de 100644 --- a/functions/base16-phd.fish +++ b/functions/base16-phd.fish @@ -34,12 +34,12 @@ function base16-phd -d "PhD" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-phd -d "PhD" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-pico.fish b/functions/base16-pico.fish index e930d3f..9ebca67 100644 --- a/functions/base16-pico.fish +++ b/functions/base16-pico.fish @@ -34,12 +34,12 @@ function base16-pico -d "Pico" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-pico -d "Pico" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-pinky.fish b/functions/base16-pinky.fish index cd3769f..0f20550 100644 --- a/functions/base16-pinky.fish +++ b/functions/base16-pinky.fish @@ -34,12 +34,12 @@ function base16-pinky -d "pinky" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-pinky -d "pinky" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-pop.fish b/functions/base16-pop.fish index a33fcda..1de8723 100644 --- a/functions/base16-pop.fish +++ b/functions/base16-pop.fish @@ -34,12 +34,12 @@ function base16-pop -d "Pop" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-pop -d "Pop" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-porple.fish b/functions/base16-porple.fish index 70980db..3e46107 100644 --- a/functions/base16-porple.fish +++ b/functions/base16-porple.fish @@ -34,12 +34,12 @@ function base16-porple -d "Porple" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-porple -d "Porple" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-qualia.fish b/functions/base16-qualia.fish index 2f65f3e..7e93424 100644 --- a/functions/base16-qualia.fish +++ b/functions/base16-qualia.fish @@ -34,12 +34,12 @@ function base16-qualia -d "Qualia" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-qualia -d "Qualia" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-railscasts.fish b/functions/base16-railscasts.fish index 49abc0a..5082f75 100644 --- a/functions/base16-railscasts.fish +++ b/functions/base16-railscasts.fish @@ -34,12 +34,12 @@ function base16-railscasts -d "Railscasts" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-railscasts -d "Railscasts" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-rebecca.fish b/functions/base16-rebecca.fish index 273f3e7..8fdc88a 100644 --- a/functions/base16-rebecca.fish +++ b/functions/base16-rebecca.fish @@ -34,12 +34,12 @@ function base16-rebecca -d "Rebecca" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-rebecca -d "Rebecca" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-rose-pine-dawn.fish b/functions/base16-rose-pine-dawn.fish index 7ca2229..a2599ce 100644 --- a/functions/base16-rose-pine-dawn.fish +++ b/functions/base16-rose-pine-dawn.fish @@ -34,12 +34,12 @@ function base16-rose-pine-dawn -d "Rosé Pine Dawn" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-rose-pine-dawn -d "Rosé Pine Dawn" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-rose-pine-moon.fish b/functions/base16-rose-pine-moon.fish index d464f6f..b007e5d 100644 --- a/functions/base16-rose-pine-moon.fish +++ b/functions/base16-rose-pine-moon.fish @@ -34,12 +34,12 @@ function base16-rose-pine-moon -d "Rosé Pine Moon" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-rose-pine-moon -d "Rosé Pine Moon" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-rose-pine.fish b/functions/base16-rose-pine.fish index fe25166..420787a 100644 --- a/functions/base16-rose-pine.fish +++ b/functions/base16-rose-pine.fish @@ -34,12 +34,12 @@ function base16-rose-pine -d "Rosé Pine" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-rose-pine -d "Rosé Pine" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-sagelight.fish b/functions/base16-sagelight.fish index a2472b7..13291cc 100644 --- a/functions/base16-sagelight.fish +++ b/functions/base16-sagelight.fish @@ -34,12 +34,12 @@ function base16-sagelight -d "Sagelight" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-sagelight -d "Sagelight" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-sakura.fish b/functions/base16-sakura.fish index 9b13411..ef37b46 100644 --- a/functions/base16-sakura.fish +++ b/functions/base16-sakura.fish @@ -34,12 +34,12 @@ function base16-sakura -d "Sakura" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-sakura -d "Sakura" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-sandcastle.fish b/functions/base16-sandcastle.fish index ee56da4..522e85b 100644 --- a/functions/base16-sandcastle.fish +++ b/functions/base16-sandcastle.fish @@ -34,12 +34,12 @@ function base16-sandcastle -d "Sandcastle" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-sandcastle -d "Sandcastle" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-seti.fish b/functions/base16-seti.fish index baeba25..de3509b 100644 --- a/functions/base16-seti.fish +++ b/functions/base16-seti.fish @@ -34,12 +34,12 @@ function base16-seti -d "Seti UI" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-seti -d "Seti UI" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-shades-of-purple.fish b/functions/base16-shades-of-purple.fish index 9f00a4a..a092e68 100644 --- a/functions/base16-shades-of-purple.fish +++ b/functions/base16-shades-of-purple.fish @@ -34,12 +34,12 @@ function base16-shades-of-purple -d "Shades of Purple" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-shades-of-purple -d "Shades of Purple" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-shapeshifter.fish b/functions/base16-shapeshifter.fish index 7e47fcb..5585fcc 100644 --- a/functions/base16-shapeshifter.fish +++ b/functions/base16-shapeshifter.fish @@ -34,12 +34,12 @@ function base16-shapeshifter -d "Shapeshifter" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-shapeshifter -d "Shapeshifter" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-silk-dark.fish b/functions/base16-silk-dark.fish index 8f6010a..4ee971e 100644 --- a/functions/base16-silk-dark.fish +++ b/functions/base16-silk-dark.fish @@ -34,12 +34,12 @@ function base16-silk-dark -d "Silk Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-silk-dark -d "Silk Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-silk-light.fish b/functions/base16-silk-light.fish index 66ad2d1..134f63d 100644 --- a/functions/base16-silk-light.fish +++ b/functions/base16-silk-light.fish @@ -34,12 +34,12 @@ function base16-silk-light -d "Silk Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-silk-light -d "Silk Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-snazzy.fish b/functions/base16-snazzy.fish index 7fb8370..a10d7d6 100644 --- a/functions/base16-snazzy.fish +++ b/functions/base16-snazzy.fish @@ -34,12 +34,12 @@ function base16-snazzy -d "Snazzy" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-snazzy -d "Snazzy" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-solarflare-light.fish b/functions/base16-solarflare-light.fish index af81a22..eece6f0 100644 --- a/functions/base16-solarflare-light.fish +++ b/functions/base16-solarflare-light.fish @@ -34,12 +34,12 @@ function base16-solarflare-light -d "Solar Flare Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-solarflare-light -d "Solar Flare Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-solarflare.fish b/functions/base16-solarflare.fish index 53dbada..f428e3d 100644 --- a/functions/base16-solarflare.fish +++ b/functions/base16-solarflare.fish @@ -34,12 +34,12 @@ function base16-solarflare -d "Solar Flare" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-solarflare -d "Solar Flare" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-solarized-dark.fish b/functions/base16-solarized-dark.fish index b4be1ca..3fb8459 100644 --- a/functions/base16-solarized-dark.fish +++ b/functions/base16-solarized-dark.fish @@ -34,12 +34,12 @@ function base16-solarized-dark -d "Solarized Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-solarized-dark -d "Solarized Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-solarized-light.fish b/functions/base16-solarized-light.fish index 7a0710c..4f3b0ef 100644 --- a/functions/base16-solarized-light.fish +++ b/functions/base16-solarized-light.fish @@ -34,12 +34,12 @@ function base16-solarized-light -d "Solarized Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-solarized-light -d "Solarized Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-spacemacs.fish b/functions/base16-spacemacs.fish index 100f223..d887065 100644 --- a/functions/base16-spacemacs.fish +++ b/functions/base16-spacemacs.fish @@ -34,12 +34,12 @@ function base16-spacemacs -d "Spacemacs" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-spacemacs -d "Spacemacs" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-summercamp.fish b/functions/base16-summercamp.fish index f76f86b..9f9e42a 100644 --- a/functions/base16-summercamp.fish +++ b/functions/base16-summercamp.fish @@ -34,12 +34,12 @@ function base16-summercamp -d "summercamp" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-summercamp -d "summercamp" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-summerfruit-dark.fish b/functions/base16-summerfruit-dark.fish index 4304dd1..6a3097d 100644 --- a/functions/base16-summerfruit-dark.fish +++ b/functions/base16-summerfruit-dark.fish @@ -34,12 +34,12 @@ function base16-summerfruit-dark -d "Summerfruit Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-summerfruit-dark -d "Summerfruit Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-summerfruit-light.fish b/functions/base16-summerfruit-light.fish index c5ae5c0..f27290f 100644 --- a/functions/base16-summerfruit-light.fish +++ b/functions/base16-summerfruit-light.fish @@ -34,12 +34,12 @@ function base16-summerfruit-light -d "Summerfruit Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-summerfruit-light -d "Summerfruit Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-synth-midnight-dark.fish b/functions/base16-synth-midnight-dark.fish index a315e54..3ac7343 100644 --- a/functions/base16-synth-midnight-dark.fish +++ b/functions/base16-synth-midnight-dark.fish @@ -34,12 +34,12 @@ function base16-synth-midnight-dark -d "Synth Midnight Terminal Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-synth-midnight-dark -d "Synth Midnight Terminal Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-synth-midnight-light.fish b/functions/base16-synth-midnight-light.fish index e555bbb..0e00a36 100644 --- a/functions/base16-synth-midnight-light.fish +++ b/functions/base16-synth-midnight-light.fish @@ -34,12 +34,12 @@ function base16-synth-midnight-light -d "Synth Midnight Terminal Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-synth-midnight-light -d "Synth Midnight Terminal Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tango.fish b/functions/base16-tango.fish index d9bef59..7f109bc 100644 --- a/functions/base16-tango.fish +++ b/functions/base16-tango.fish @@ -34,12 +34,12 @@ function base16-tango -d "Tango" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tango -d "Tango" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tender.fish b/functions/base16-tender.fish index 47e18e6..d2db6f9 100644 --- a/functions/base16-tender.fish +++ b/functions/base16-tender.fish @@ -34,12 +34,12 @@ function base16-tender -d "tender" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tender -d "tender" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tomorrow-night-eighties.fish b/functions/base16-tomorrow-night-eighties.fish index 7ce16e8..ee12beb 100644 --- a/functions/base16-tomorrow-night-eighties.fish +++ b/functions/base16-tomorrow-night-eighties.fish @@ -34,12 +34,12 @@ function base16-tomorrow-night-eighties -d "Tomorrow Night" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tomorrow-night-eighties -d "Tomorrow Night" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tomorrow-night.fish b/functions/base16-tomorrow-night.fish index 7284570..eabc52f 100644 --- a/functions/base16-tomorrow-night.fish +++ b/functions/base16-tomorrow-night.fish @@ -34,12 +34,12 @@ function base16-tomorrow-night -d "Tomorrow Night" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tomorrow-night -d "Tomorrow Night" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tomorrow.fish b/functions/base16-tomorrow.fish index 4ce6499..eb4a0f6 100644 --- a/functions/base16-tomorrow.fish +++ b/functions/base16-tomorrow.fish @@ -34,12 +34,12 @@ function base16-tomorrow -d "Tomorrow" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tomorrow -d "Tomorrow" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-tube.fish b/functions/base16-tube.fish index 6858c4f..5f1a22e 100644 --- a/functions/base16-tube.fish +++ b/functions/base16-tube.fish @@ -34,12 +34,12 @@ function base16-tube -d "London Tube" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-tube -d "London Tube" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-twilight.fish b/functions/base16-twilight.fish index e4ca889..12e9ada 100644 --- a/functions/base16-twilight.fish +++ b/functions/base16-twilight.fish @@ -34,12 +34,12 @@ function base16-twilight -d "Twilight" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-twilight -d "Twilight" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-unikitty-dark.fish b/functions/base16-unikitty-dark.fish index ebb03eb..3f20c71 100644 --- a/functions/base16-unikitty-dark.fish +++ b/functions/base16-unikitty-dark.fish @@ -34,12 +34,12 @@ function base16-unikitty-dark -d "Unikitty Dark" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-unikitty-dark -d "Unikitty Dark" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-unikitty-light.fish b/functions/base16-unikitty-light.fish index e39f4f6..aa25c96 100644 --- a/functions/base16-unikitty-light.fish +++ b/functions/base16-unikitty-light.fish @@ -34,12 +34,12 @@ function base16-unikitty-light -d "Unikitty Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-unikitty-light -d "Unikitty Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-vulcan.fish b/functions/base16-vulcan.fish index aef34b9..23007dd 100644 --- a/functions/base16-vulcan.fish +++ b/functions/base16-vulcan.fish @@ -34,12 +34,12 @@ function base16-vulcan -d "vulcan" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-vulcan -d "vulcan" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-10-light.fish b/functions/base16-windows-10-light.fish index 517dc02..a0589b9 100644 --- a/functions/base16-windows-10-light.fish +++ b/functions/base16-windows-10-light.fish @@ -34,12 +34,12 @@ function base16-windows-10-light -d "Windows 10 Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-10-light -d "Windows 10 Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-10.fish b/functions/base16-windows-10.fish index 818dbfb..57a2829 100644 --- a/functions/base16-windows-10.fish +++ b/functions/base16-windows-10.fish @@ -34,12 +34,12 @@ function base16-windows-10 -d "Windows 10" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-10 -d "Windows 10" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-95-light.fish b/functions/base16-windows-95-light.fish index 8021f3f..3c27c3b 100644 --- a/functions/base16-windows-95-light.fish +++ b/functions/base16-windows-95-light.fish @@ -34,12 +34,12 @@ function base16-windows-95-light -d "Windows 95 Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-95-light -d "Windows 95 Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-95.fish b/functions/base16-windows-95.fish index b407b92..69c29a6 100644 --- a/functions/base16-windows-95.fish +++ b/functions/base16-windows-95.fish @@ -34,12 +34,12 @@ function base16-windows-95 -d "Windows 95" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-95 -d "Windows 95" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-highcontrast-light.fish b/functions/base16-windows-highcontrast-light.fish index 54bce93..767af61 100644 --- a/functions/base16-windows-highcontrast-light.fish +++ b/functions/base16-windows-highcontrast-light.fish @@ -34,12 +34,12 @@ function base16-windows-highcontrast-light -d "Windows High Contrast Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-highcontrast-light -d "Windows High Contrast Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-highcontrast.fish b/functions/base16-windows-highcontrast.fish index 8dfbc59..45745fe 100644 --- a/functions/base16-windows-highcontrast.fish +++ b/functions/base16-windows-highcontrast.fish @@ -34,12 +34,12 @@ function base16-windows-highcontrast -d "Windows High Contrast" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-highcontrast -d "Windows High Contrast" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-nt-light.fish b/functions/base16-windows-nt-light.fish index 42d93e2..a636d19 100644 --- a/functions/base16-windows-nt-light.fish +++ b/functions/base16-windows-nt-light.fish @@ -34,12 +34,12 @@ function base16-windows-nt-light -d "Windows NT Light" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-nt-light -d "Windows NT Light" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-windows-nt.fish b/functions/base16-windows-nt.fish index 0d87626..7f5f2e3 100644 --- a/functions/base16-windows-nt.fish +++ b/functions/base16-windows-nt.fish @@ -34,12 +34,12 @@ function base16-windows-nt -d "Windows NT" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-windows-nt -d "Windows NT" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-woodland.fish b/functions/base16-woodland.fish index e074fd6..eeec07c 100644 --- a/functions/base16-woodland.fish +++ b/functions/base16-woodland.fish @@ -34,12 +34,12 @@ function base16-woodland -d "Woodland" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-woodland -d "Woodland" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-xcode-dusk.fish b/functions/base16-xcode-dusk.fish index 88cdf83..e4d8bff 100644 --- a/functions/base16-xcode-dusk.fish +++ b/functions/base16-xcode-dusk.fish @@ -34,12 +34,12 @@ function base16-xcode-dusk -d "XCode Dusk" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-xcode-dusk -d "XCode Dusk" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/functions/base16-zenburn.fish b/functions/base16-zenburn.fish index 399fd22..3b68941 100644 --- a/functions/base16-zenburn.fish +++ b/functions/base16-zenburn.fish @@ -34,12 +34,12 @@ function base16-zenburn -d "Zenburn" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-zenburn -d "Zenburn" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end diff --git a/templates/default.mustache b/templates/default.mustache index aa5cdfd..b394d9e 100644 --- a/templates/default.mustache +++ b/templates/default.mustache @@ -34,12 +34,12 @@ function base16-{{scheme-slug}} -d "{{scheme-name}}" function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; - else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + else if string match -q 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; - else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + else if string match -q 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; @@ -89,7 +89,7 @@ function base16-{{scheme-slug}} -d "{{scheme-name}}" put_template_var 10 $colorfg if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] put_template_var 11 $colorbg - if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + if string match -q 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] put_template_var 708 $colorbg # internal border (rxvt) end end