Is it possible to write empty history to file ? #339
-
I am using ble-sh latest git & I want to clear my shell history which is too large. My env info:
When using So, my query is: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks. I added changes to Edit: It should be noted that the behavior of |
Beta Was this translation helpful? Give feedback.
Thanks. I added changes to
ble/builtin/history -w
in commit c78e5c9. Could you update ble.sh by runningble-update
in a ble.sh session and check the behavior?Edit: It should be noted that the behavior of
ble/builtin/history
is intentionally changed in the initialization stage of Bash (in.bashrc
or.bash_profile
) because Bash's default behavior is sometimes inconsistent there. It is generally not recommended to usehistory
builtins inside.bashrc
or.bash_profile
.