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'

おすすめ記事