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 :)
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 :)