Files
Server-scripts/os_and_install/bashrc
T
lucas 6a771237b5 chore(profile_motd): new profile motd script
reformat network print
reformat memory print
update bashrc
2026-11-04 11:31:59 +01:00

28 lines
946 B
Bash

#############################################################
## CUSTOM
#############################################################
if [ -f /home/lucas/scripts/utils/profile_motd.sh ]; then
bash /home/lucas/scripts/utils/profile_motd.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"