]> git.sev.monster Git - dotfiles.git/commitdiff
zsh: fix bad syntax in .zlogout
authorsev <git@sev.monster>
Thu, 26 Dec 2024 16:18:30 +0000 (10:18 -0600)
committersev <git@sev.monster>
Thu, 26 Dec 2024 16:18:57 +0000 (10:18 -0600)
fixes termcap not being checked for logout clear

etc/zsh/.zlogout

index df25b19ea3bf1783adb96e45e5ef0d28d09e4d86..ca0fa13e0584776cd2f8f705dd040df2e864cf46 100644 (file)
@@ -28,7 +28,7 @@ if [[ -o interactive ]] {
             y=0
         }
     }
-    if { (( y )) && -v termcap ]] } {
+    if { (( y )) && [[ -v termcap ]] } {
         for x (rs r1 r2 r3) {
             [[ -v termcap[$x] ]] || continue
             echotc $x
This page took 0.052069 seconds and 4 git commands to generate.