Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Feb 13, 2024
1 parent cb2a278 commit 5d00c13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ fi

function backup_zsh_history () {
if [ -d "${HIST_BACKUP_DIR}" ]; then
local PFX=${${(M)OSTYPE:#*darwin*}:+g}
HISTFILE_BAK="${HIST_BACKUP_DIR}/zsh_history_$(${PFX}date +\%Y_\%m_\%d).bak"
HISTFILE_BAK="${HIST_BACKUP_DIR}/zsh_history_$(date +\%Y_\%m_\%d).bak"
if [ ! -f "${HISTFILE_BAK}" ]; then
cp "${HISTFILE}" "${HISTFILE_BAK}"
fi
Expand Down

0 comments on commit 5d00c13

Please sign in to comment.