Re: How to disable command prompt history?



On 6/2/07, Christopher Hilton <chris@xxxxxxxxxxxx> wrote:
VeeJay wrote:
> Hello there
>
> Could someone would like to describe that how we can disable to show last
> executed commands by pressing Up Arrow?
>

That would depend on which shell you are running. Can you run the
following command and post the results here?

echo $SHELL


By default most of the shells like bash, zsh, ksh have history option.
But you can avoid writing the history of the current session to the
history file by unsetting the HISTFILE environment variable.
So next time when you login the history of the previous session will
not be shown.

sac.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Common History across Shell
    ... history in file from each session *after* the particular session ... What I wanted was multiple sessions can share history (the ... Shell might behave the normal way (maintain ... done on a specific user action. ...
    (comp.unix.shell)
  • Re: Common History across Shell
    ... When the shell starts up, the history is initialized from the file ... named by the value of HISTFILE is truncated, if necessary, to contain ... history in file from each session *after* the particular session ...
    (comp.unix.shell)
  • Re: How to disable command prompt history?
    ... last executed commands by pressing Up Arrow? ... That would depend on which shell you are running. ... By default most of the shells like bash, zsh, ksh have history option. ... I /could/ recreate that arcane command ...
    (freebsd-questions)
  • Re: stdout -determining size of??
    ... My query comes about because I had a shell running for ages with ... Could you provide the error message that made you think that stdout has ... After getting the message I dumped the history and locate.updatedb ran ... That depends entirely on the shell. ...
    (freebsd-questions)
  • Re: Newbie: save an interpretation session
    ... editing/interpretation session for next Forth interpreter startup. ... In iForth, every line of input is appended to a history file and all lines ... it on the command line. ...
    (comp.lang.forth)