From b73663cf4bbe7ddd42de0e869c35b069dbcf7271 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 15 Nov 2024 16:58:16 +0100 Subject: [PATCH] wip/bash --- shell/{bash/prompt.sh => bash.sh} | 10 ++++++++++ shell/bash/completion.sh | 5 ----- shell/bash/history.sh | 5 ----- 3 files changed, 10 insertions(+), 10 deletions(-) rename shell/{bash/prompt.sh => bash.sh} (81%) delete mode 100644 shell/bash/completion.sh delete mode 100644 shell/bash/history.sh diff --git a/shell/bash/prompt.sh b/shell/bash.sh similarity index 81% rename from shell/bash/prompt.sh rename to shell/bash.sh index 5ba1159..7b0f3c7 100644 --- a/shell/bash/prompt.sh +++ b/shell/bash.sh @@ -1,3 +1,13 @@ +HISTCONTROL="ignorespace" + +HISTSIZE=-1 + +HISTTIMEFORMAT="%Y%m%d %H%M%S " +file="/usr/share/bash-completion/bash_completion" + +if [ -f "${file}" ]; then + . "${file}" +fi ps1() { local date host local code="${1}" diff --git a/shell/bash/completion.sh b/shell/bash/completion.sh deleted file mode 100644 index 21e8a21..0000000 --- a/shell/bash/completion.sh +++ /dev/null @@ -1,5 +0,0 @@ -file="/usr/share/bash-completion/bash_completion" - -if [ -f "${file}" ]; then - . "${file}" -fi diff --git a/shell/bash/history.sh b/shell/bash/history.sh deleted file mode 100644 index 59234ad..0000000 --- a/shell/bash/history.sh +++ /dev/null @@ -1,5 +0,0 @@ -HISTCONTROL="ignorespace" - -HISTSIZE=-1 - -HISTTIMEFORMAT="%Y%m%d %H%M%S "