zsh에서 기본 16개보다 더 많은 항목을 표시하려면 어떻게 해야 합니까?

zsh에서 기본 16개보다 더 많은 항목을 표시하려면 어떻게 해야 합니까?

이것은 내 ~/.zsh/.zshrc입니다 -

/home/shirish/.zsh> cat .zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh//.histfile
HISTSIZE=10000
SAVEHIST=100000
setopt inc_append_history autocd nomatch notify share_history
bindkey -e
# End of lines configured by zsh-newuser-install

# display how long all tasks over 10 seconds take
export REPORTTIME=10

# The following lines were added by compinstall
zstyle :compinstall filename '/home/shirish/.zsh//.zshrc'

autoload -Uz compinit promptinit
compinit
promptinit
# End of lines added by compinstall

#from https://unix.stackexchange.com/questions/332732/removing-strange-characters-from-a-zsh-prompt

export LC_ALL=en_IN.UTF-8
export LANG=en_IN.UTF-8
export LANGUAGE=en_IN.UTF-8

#from https://unix.stackexchange.com/questions/332888/how-to-have-a-longer-xterm-title-in-zsh

autoload -Uz add-zsh-hook

function xterm_title_precmd () {
    print -Pn '\e]2;%n@%m %1~\a'
}

function xterm_title_preexec () {
    print -Pn '\e]2;%n@%m %~ %# '
    print -n "${(q)1}\a"
}

if [[ "$TERM" == (screen*|xterm*|rxvt*) ]]; then
    add-zsh-hook -Uz precmd xterm_title_precmd
    add-zsh-hook -Uz preexec xterm_title_preexec
fi


prompt bigfade

이제 기록 출력을 얻으려고 하면 .zsh에서 기록의 항목 16개만 얻을 수 있습니다. 모든 항목을 보려면 어떻게 해야 합니까? 어떤 이유로 16개만 저장/표시하고 나머지는 기록되지 않는 것 같습니다. 동일한 셸에 여러 탭이 있습니다. 이것이 버그인지 아니면 더 추가해야 하는지 모르겠습니다.

답변1

에서 man fc:

첫 번째와 마지막이 모두 생략된 경우 처음 16개 명령이 나열되거나 이전 명령이 편집되어야 합니다(-l 옵션에 따라).

문제를 해결하려면:alias history='fc -l -100'

관련 정보