Skip to content

Commit

Permalink
enhancement to bash history
Browse files Browse the repository at this point in the history
  • Loading branch information
synle committed Nov 16, 2023
1 parent 6ccb8d4 commit 6a98a7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bash-profile-barebone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ export BASH_PATH=~/.bashrc
# add sbin to path
export PATH=$PATH:/sbin

# increase history size
export HISTSIZE=5000
export HISTFILESIZE=10000
export HISTTIMEFORMAT="[%F %T] "
# Force prompt to write history after every command.
# http://superuser.com/questions/20900/bash-history-loss
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"


# os flags
export is_os_darwin_mac=0 && [ -d /Applications ] && export is_os_darwin_mac=1
export is_os_window=0 && [ -d /mnt/c/Users ] && export is_os_window=1
Expand Down

0 comments on commit 6a98a7e

Please sign in to comment.