]> git.phdru.name Git - dotfiles.git/commitdiff
.profile: HISTIGNORE mistakes
authorOleg Broytman <phd@phdru.name>
Wed, 21 Dec 2022 10:18:59 +0000 (13:18 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 22 Dec 2022 06:20:37 +0000 (09:20 +0300)
`~?` must be `!?`.
`,c` and `ьс` (in the terminal's encoding) must be `mc`.

.profile

index 7952c54a01025004e00b419df7f5a0ecebc57114..338ceb16b293a65073397a1fd17c9fe5377a94b9 100644 (file)
--- a/.profile
+++ b/.profile
@@ -130,7 +130,7 @@ if [ -t 0 ] ; then
     export EDITOR FCEDIT VISUAL
 
     HISTCONTROL=ignoreboth
-    HISTIGNORE='&: *:[bf]g:cd:clear:e:exit:logout:l:ls:ll:llp:mc:w:X:x'
+    HISTIGNORE="`echo '&: *:~\?*:[bf]g:cd:clear:e:exit:logout:l:ls:ll:llp:[m,]c:ьс:w:X:x' | iconv -f koi8-r`"
     HISTFILE="$HOME/.sh_history"
     HISTFILESIZE=2000
     HISTSIZE=1000