делаю так открываю:
nano ~/.zshrc
# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense
setopt promptsubst # enable command substitution in prompt
WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
# hide EOL sign ('%')
PROMPT_EOL_MARK=""
alias clear_history='echo "" > ~/.zsh_history & exec $SHELL -l'
ставляю сюда сохраняю файл .zshrc и
закрываю. Вожу zsh и набираю
clear_history
$ clear_history
[1] 26802
┏━(Message from Kali developers)
┃
┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒
Ссылка скрыта от гостей
┃
┗━(Run: “touch ~/.hushlogin” to hide this message)
el
она удаляет но когда выхожу exit из оболочки
и вожу в терминале
$ history
1 ls
2 man fc
3 which history
4 \history -c
5 history 0 -c
6 echo "" > ~/.zsh_history & exec $SHELL -l
7 ~/.zshrc
8 sudo ~/.zshrc
ничего и не удалилось вопрос в одной оболочке удаляется в другой нет?