Files
2026-09-23 16:22:04 +00:00

23 lines
800 B
Bash

if [ -f /home/lucas/scripts/profile_motd1.sh ]; then
bash /home/lucas/scripts/profile_motd1.sh
fi
# Eternal Bash history.
# ---------------------
# Undocumented feature which sets the size to "unlimited".
# <https://stackoverflow.com/questions/9457233>
# Unlimited Bash history
#
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
# Change the file location, because certain Bash sessions truncate .bash_history file upon close.
# <https://superuser.com/questions/575479>
# Bash history truncated to 500 lines on each login
#
export HISTFILE=~/.bash_eternal_history
# Force prompt to write history after every command.
# <https://superuser.com/questions/20900/bash-history-loss>
# Bash history loss when using histappend
#
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"