aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2019-06-07 17:36:28 -0400
committertdro <tdro@users.noreply.github.com>2019-06-07 17:36:28 -0400
commit6f0ddc48673b185e693d140a1858128c9f699dc6 (patch)
tree26ae501ed288c456f3f7a6b1cfd47abaf81ee3ef /.bashrc
parent44f696c0ae72492882ccfad5c3f6ee53b9ad4a16 (diff)
downloaddotfiles-6f0ddc48673b185e693d140a1858128c9f699dc6.tar.gz
dotfiles-6f0ddc48673b185e693d140a1858128c9f699dc6.tar.bz2
dotfiles-6f0ddc48673b185e693d140a1858128c9f699dc6.zip
.bashrc: bash history one command per line
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 19e45a6..eaa5a09 100644
--- a/.bashrc
+++ b/.bashrc
@@ -47,7 +47,10 @@ export HISTFILESIZE=
export HISTCONTROL=ignoredups:erasedups
# append bash history entries
-shopt -s histappend
+shopt -s histappend;
+
+# bash history one command per line
+shopt -s cmdhist;
# get last command for prompt command
lastcmd() { LASTCMD=$(history 1 | cut -c8-); echo -ne "\e]2;$LASTCMD\a\e]1;$LASTCMD\a"; }