This commit is contained in:
Marc Beninca 2024-11-15 17:06:29 +01:00
parent b73663cf4b
commit 1486ff4246
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,13 +1,23 @@
HISTCONTROL="ignorespace" [ "$(cat /proc/$$/comm)" = "bash" ] || return
HISTSIZE=-1 # completion
HISTTIMEFORMAT="%Y%m%d %H%M%S "
file="/usr/share/bash-completion/bash_completion" file="/usr/share/bash-completion/bash_completion"
if [ -f "${file}" ]; then if [ -f "${file}" ]; then
. "${file}" . "${file}"
fi fi
# history
HISTCONTROL="ignorespace"
HISTSIZE=-1
HISTTIMEFORMAT="%Y%m%d %H%M%S "
# prompt
ps1() { ps1() {
local date host local date host
local code="${1}" local code="${1}"