1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 13:19:24 +00:00

Add zstyle to skip aliases for additional modules

This commit is contained in:
mattmc3
2023-04-12 22:02:41 -04:00
committed by Kaleb Elwert
parent fc444f57e1
commit da87c79b3a
13 changed files with 145 additions and 119 deletions

View File

@ -38,8 +38,10 @@ unset _pmh_{hist{file,size},savehist}
# Aliases
#
# Lists the ten most used commands.
alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head"
if ! zstyle -t ':prezto:module:history:alias' skip; then
# Lists the ten most used commands.
alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head"
fi
if [[ -s "${OLD_HISTFILE::=${HISTFILE:h}/.zhistory}" ]]; then