.bashrc
changeset 987 e0ffdc132f41
parent 978 8f0e780cabcf
child 991 57fda390e91c
--- a/.bashrc	Wed Jun 02 21:46:48 2021 +0300
+++ b/.bashrc	Thu Jun 03 02:02:50 2021 +0300
@@ -23,8 +23,12 @@
   ruler=${ruler:0:${size}}
   _my_ruler=$ruler
 }
-_my_ruler_handler
-trap '_my_ruler_handler' SIGWINCH
+case $- in
+  *i*)
+    _my_ruler_handler
+    trap '_my_ruler_handler' SIGWINCH
+    ;;
+esac
 
 PS1='\n${_my_ruler}\r$?|\u@\h \w \nbash# '
 PS2='> '