history -c. echo $0. ~/.shrc set HISTFILE to an empty string does the job.HISTFILE=
HISTSIZE=50
FCEDIT=vi
~/sh_history, it won't be created anymore.HISTFILE File used for persistent history storage. If unset ~/.sh_history will be used.
If set but empty or HISTSIZE is set to 0 the shell will not load and save the
history.
HISTSIZE The number of previous commands that are accessible.
history command(which isn't really a command see below) defined by HISTSIZE but those commands won't remain once you logged out, if HISTSIZE is set to 0 of course they won't be accessible through the history command. history command is only an alias to fc -l (I figured this out in that thread)root@fbsd:~ # grep fc /usr/share/skel/dot.shrc
alias h='fc -l'
alias history='fc -l'
root@fbsd:~ #
That can be done with a shorter command.cat /dev/null >> ~/.history
Need to quickly empty a file? Use ": > filename".
-- Dru <genesis@istar.ca>
OtherwiseCode:cat /dev/null >> ~/.history
Confirm your shell as mentioned. It maybe zshell => .zhistory if you use zsh.
>> - honestly?