Closed xdanielc closed 6 months ago
That is the Bash feature to record the timestamps of the commands, which is turned off by default. Oh-My-Bash (OMB) turn on the timestamp of the Bash command history.
See Bash Reference Manual - HISTTIMEFORMAT:
HISTTIMEFORMAT
If this variable is set and not null, its value is used as a format string for
strftime
to print the time stamp associated with each history entry displayed by thehistory
builtin. If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions. This uses the history comment character to distinguish timestamps from other history lines.
If you don't like it, you can remove the variable HISTTIMEFORMAT
after sourcing oh-my-bash.sh
.
# add the following line after the line "source "$OSH"/oh-my-bash.sh" in .bashrc
unset -v HISTTIMEFORMAT
Thanks, I didn't realize those were timestamps, don't know if adding a FAQ to the website might have help, maybe adding a link to the wiki here since it's something I overlooked, the main readme it's quite long already. I think we could close this now, leaving it to you if there's something you'd want to mention.
I installed the latesh version today, running the automatic script. This Happens with default "font" theme and looks something like this:
My .bashrc looks like this: