summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-09-28 19:16:22 +0200
committerRobert Günzler <r@gnzler.io>2022-09-28 19:16:22 +0200
commiteddeab8513502cfbc58b648fdba0b89c296b35cb (patch)
tree0e01ea02e6129c3f0379d3988862f4c1b5fa0631
parent056873faeffc7bc65096b74aefebedb8cf42235e (diff)
bashrc: don't record commands staring with space in bash history
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 8d19db8..0ad2e42 100644
--- a/.bashrc
+++ b/.bashrc
@@ -27,6 +27,7 @@ bind -m vi-insert -x '"\C-l": clear'
 shopt -s histappend
 HISTSIZE=50000
 HISTFILESIZE=500000
+HISTCONTROL=ignorespace
 
 # enable direnv
 eval "$(direnv hook bash)"