alias not showing up in bash history

HISTIGNORE variable is set to:

export HISTIGNORE="&:ls*:reboot:pwd:exit:clear:[ \t]*"

I have couple of Alias set. One of them is

alias todo='emacs ~/Dropbox/Documents/todo.txt'

None of them shows up in history. Not that I want them to show up in history, but what baffles me is, why the hell they do not show up in history.

Answers


In bash, the sequence \t only means tab inside of $'...'. That's why your pattern matches your todo command; it matches anything that starts with t.

You can fix it like this:

tab=$'\t'
export HISTIGNORE="&:ls*:reboot:pwd:exit:clear:[ $tab]*"
unset tab

Need Your Help

Default config settings for a new git repository?

git configuration

When I create a new git repository, some configurations settings are automatically added to .git/config. Where can I change these default settings?

How to update table from another table or excel file?

sql-server sql-update

I have a table T1(col1, col2, info), col1 is primary key. Now I have a another table T2 (col1, col2, col3), col1 is primary key. For example,