Add support for custom timestamp format in history (#6770)

This commit is contained in:
Cristian Consonni 2018-07-13 13:14:15 +02:00 committed by Marc Cornellà
commit d3e3b2dd0d
2 changed files with 6 additions and 2 deletions

View file

@ -23,7 +23,8 @@ case $HIST_STAMPS in
"mm/dd/yyyy") alias history='omz_history -f' ;;
"dd.mm.yyyy") alias history='omz_history -E' ;;
"yyyy-mm-dd") alias history='omz_history -i' ;;
*) alias history='omz_history' ;;
"") alias history='omz_history' ;;
*) alias history="omz_history -t '$HIST_STAMPS'" ;;
esac
## History file configuration