Files
Server-scripts/os_and_install/bashrc
T

27 lines
946 B
Bash
Raw Normal View History

#############################################################
## CUSTOM
#############################################################
if [ -f /home/lucas/scripts/utils/profile_motd.sh ]; then
bash /home/lucas/scripts/utils/profile_motd.sh
2026-09-23 16:22:04 +00:00
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"
2026-10-19 13:37:40 +02:00