diff options
| author | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-07-07 18:16:43 +0200 |
|---|---|---|
| committer | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-07-07 18:16:43 +0200 |
| commit | 1fe4f059d6d8927772924d922b7d33e5711d345f (patch) | |
| tree | 9396dedd1212be89efed163f8050ccbb2dadb472 | |
| parent | da83541f68bf47ca1fc5b03848787123664270cc (diff) | |
Move bash history to bashrc and add time.
| -rw-r--r-- | .bashrc | 4 | ||||
| -rw-r--r-- | .profile | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -2,6 +2,10 @@ # Prompt for Bash export PS1='\[\033[1;33m\]$(prompt)\[\033[0m\]' +export HISTCONTROL=ignoredups +export HISTIGNORE="gst:gl" +export HISTTIMEFORMAT="%F %R:%S " +export PROMPT_COMMAND="history -a;history -n" # Verify before running history command shopt -s histverify @@ -4,8 +4,6 @@ export LC_TIME=de_DE.UTF-8 export EDITOR=vim export TERM=xterm export HISTSIZE=65535 -export HISTCONTROL=ignoreboth -export PROMPT_COMMAND="history -a;history -n" export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin/`hostname`:$PATH |
