How to connect klish to a new terminal without displaying historical commands?

31 views
Skip to first unread message

sai wang

unread,
Dec 15, 2021, 10:49:53 PM12/15/21
to klish
Some hidden commands can't be seen by others. They want to clear the historical commands every time they log in to the terminal!

serj.kalichev

unread,
Dec 16, 2021, 3:06:14 AM12/16/21
to kl...@googlegroups.com

I see a three possible variants to disable history loading.

The clish binary has the following options:

        -f <path>, --histfile=<path>    File to save command history.
        -z <num>, --histsize=<num>      Command history size in lines.

You can try to:

1. Set --histfile=/dev/null

2. Set --histsize=0

3. Write a wrapper for clish. Something like "my-clish". This script can remove history file and then exec real clish.

Two first variants are not verified. Try it


16.12.2021 06:49, sai wang пишет:
Some hidden commands can't be seen by others. They want to clear the historical commands every time they log in to the terminal!
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/klish/0151c05d-ec1e-4796-80be-36afad7b7405n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages