Article 5KG9V How to implemet a function in bash that resets a counter.

How to implemet a function in bash that resets a counter.

by
George528
from LinuxQuestions.org on (#5KG9V)
Hi there! Hope you have a great day.

I stumbled across this awesome post https://gist.github.com/ckabalan/273...5f03be33286ab1 for PS1 prompt. I like this very much but would also want to implemet something. Unfortunately i don't know bash programming so maybe you will help me with my idea.

I use "clear" command a lot, and want when i hit clear, the number from CMDCOUNT to also be rested back to one. Is it possible? Any help is appriciated :)latest?d=yIl2AUoC8zA latest?i=64uIBZFDeHg:VFdb90HfKNA:F7zBnMy latest?i=64uIBZFDeHg:VFdb90HfKNA:V_sGLiP latest?d=qj6IDK7rITs latest?i=64uIBZFDeHg:VFdb90HfKNA:gIN9vFw64uIBZFDeHg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments