Re: How to disable command prompt history?



in message
<e14997e00706021056h2c94e1c6je3e57acc33841066@xxxxxxxxxxxxxx>, wrote
sac thusly...

VeeJay wrote:

Could someone would like to describe that how we can disable
to show last executed commands by pressing Up Arrow?
...
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.

Perhaps so, but to me it seems that OP was asking to turn off the
history recall in the current session itself. In bash & zsh,
setting HISTSIZE may be of some value.


- Parv

--

_______________________________________________
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: 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)
  • 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)
  • GP-CVS-V4.1.0 -- no history file?
    ... With V4.0.0 there is a history inside the session and after exit and restart I can access the last commands of the former session via the ... If it is a default feature: I would like to ask: Are there any parameters, which I must set to the new gnuplot 4.1 to obtain the "old" history mechanism? ...
    (comp.graphics.apps.gnuplot)
  • Re: Firefox help.
    ... it had history for the current session only. ... reopened FF I found that it had no history at all but loaded history ... for the current session as the 5 tabbed pages loaded. ... retaining it. ...
    (rec.outdoors.rv-travel)
  • 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)