zsh_history just showing few entries and not all [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I don't know why but .zsh_history only shows a few entries and not all.



shirish@debian ~ % history 
155 zless changelog.Debian.gz
156* torbrowser-launcher
157* apt-cache rdepends libsdl1.2debian
158* hg clone https://bitbucket.org/allacrost/allacrost
160 cd Videos
161 history | grep apg
162 history | less


This is what is in .zshrc -



% cat .zshrc
# Set up the prompt

autoload -Uz promptinit
promptinit
prompt adam1

setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e

# Keep 10000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history

# Use modern completion system
autoload -Uz compinit
compinit

zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors $(s.:.)LS_COLORS
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:a-z=A-Z' 'm:a-zA-Z=A-Za-z' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'


I do have several tabs of the VTE (Virtual Terminal Emulator) or zsh open. Maybe I'm missing a trick or something.



Except for the change in number of entries to be kept on record, all others the default values.



I am on Debian testing and using zsh version -



% zsh --version
zsh 5.4.2 (x86_64-debian-linux-gnu)


Update - This is what it says -



 ~ % ls -l ~/.zsh_history
-rw------- 1 shirish shirish 6451 Jan 5 20:59 /home/shirish/.zsh_history






share|improve this question














closed as unclear what you're asking by G-Man, Jeff Schaller, Isaac, telcoM, Rui F Ribeiro May 30 at 3:38


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
    – baselab
    Jan 5 at 14:15










  • @baselab, have updated my query with the answer you asked for.
    – shirish
    Jan 5 at 15:30










  • What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
    – G-Man
    May 27 at 17:52










  • Is this about the commands from 1 through 154, or 159?
    – Jeff Schaller
    May 27 at 18:31














up vote
1
down vote

favorite












I don't know why but .zsh_history only shows a few entries and not all.



shirish@debian ~ % history 
155 zless changelog.Debian.gz
156* torbrowser-launcher
157* apt-cache rdepends libsdl1.2debian
158* hg clone https://bitbucket.org/allacrost/allacrost
160 cd Videos
161 history | grep apg
162 history | less


This is what is in .zshrc -



% cat .zshrc
# Set up the prompt

autoload -Uz promptinit
promptinit
prompt adam1

setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e

# Keep 10000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history

# Use modern completion system
autoload -Uz compinit
compinit

zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors $(s.:.)LS_COLORS
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:a-z=A-Z' 'm:a-zA-Z=A-Za-z' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'


I do have several tabs of the VTE (Virtual Terminal Emulator) or zsh open. Maybe I'm missing a trick or something.



Except for the change in number of entries to be kept on record, all others the default values.



I am on Debian testing and using zsh version -



% zsh --version
zsh 5.4.2 (x86_64-debian-linux-gnu)


Update - This is what it says -



 ~ % ls -l ~/.zsh_history
-rw------- 1 shirish shirish 6451 Jan 5 20:59 /home/shirish/.zsh_history






share|improve this question














closed as unclear what you're asking by G-Man, Jeff Schaller, Isaac, telcoM, Rui F Ribeiro May 30 at 3:38


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
    – baselab
    Jan 5 at 14:15










  • @baselab, have updated my query with the answer you asked for.
    – shirish
    Jan 5 at 15:30










  • What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
    – G-Man
    May 27 at 17:52










  • Is this about the commands from 1 through 154, or 159?
    – Jeff Schaller
    May 27 at 18:31












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I don't know why but .zsh_history only shows a few entries and not all.



shirish@debian ~ % history 
155 zless changelog.Debian.gz
156* torbrowser-launcher
157* apt-cache rdepends libsdl1.2debian
158* hg clone https://bitbucket.org/allacrost/allacrost
160 cd Videos
161 history | grep apg
162 history | less


This is what is in .zshrc -



% cat .zshrc
# Set up the prompt

autoload -Uz promptinit
promptinit
prompt adam1

setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e

# Keep 10000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history

# Use modern completion system
autoload -Uz compinit
compinit

zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors $(s.:.)LS_COLORS
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:a-z=A-Z' 'm:a-zA-Z=A-Za-z' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'


I do have several tabs of the VTE (Virtual Terminal Emulator) or zsh open. Maybe I'm missing a trick or something.



Except for the change in number of entries to be kept on record, all others the default values.



I am on Debian testing and using zsh version -



% zsh --version
zsh 5.4.2 (x86_64-debian-linux-gnu)


Update - This is what it says -



 ~ % ls -l ~/.zsh_history
-rw------- 1 shirish shirish 6451 Jan 5 20:59 /home/shirish/.zsh_history






share|improve this question














I don't know why but .zsh_history only shows a few entries and not all.



shirish@debian ~ % history 
155 zless changelog.Debian.gz
156* torbrowser-launcher
157* apt-cache rdepends libsdl1.2debian
158* hg clone https://bitbucket.org/allacrost/allacrost
160 cd Videos
161 history | grep apg
162 history | less


This is what is in .zshrc -



% cat .zshrc
# Set up the prompt

autoload -Uz promptinit
promptinit
prompt adam1

setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e

# Keep 10000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history

# Use modern completion system
autoload -Uz compinit
compinit

zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors $(s.:.)LS_COLORS
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:a-z=A-Z' 'm:a-zA-Z=A-Za-z' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'


I do have several tabs of the VTE (Virtual Terminal Emulator) or zsh open. Maybe I'm missing a trick or something.



Except for the change in number of entries to be kept on record, all others the default values.



I am on Debian testing and using zsh version -



% zsh --version
zsh 5.4.2 (x86_64-debian-linux-gnu)


Update - This is what it says -



 ~ % ls -l ~/.zsh_history
-rw------- 1 shirish shirish 6451 Jan 5 20:59 /home/shirish/.zsh_history








share|improve this question













share|improve this question




share|improve this question








edited Jan 5 at 15:29

























asked Jan 5 at 11:09









shirish

3,28342273




3,28342273




closed as unclear what you're asking by G-Man, Jeff Schaller, Isaac, telcoM, Rui F Ribeiro May 30 at 3:38


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by G-Man, Jeff Schaller, Isaac, telcoM, Rui F Ribeiro May 30 at 3:38


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
    – baselab
    Jan 5 at 14:15










  • @baselab, have updated my query with the answer you asked for.
    – shirish
    Jan 5 at 15:30










  • What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
    – G-Man
    May 27 at 17:52










  • Is this about the commands from 1 through 154, or 159?
    – Jeff Schaller
    May 27 at 18:31
















  • Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
    – baselab
    Jan 5 at 14:15










  • @baselab, have updated my query with the answer you asked for.
    – shirish
    Jan 5 at 15:30










  • What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
    – G-Man
    May 27 at 17:52










  • Is this about the commands from 1 through 154, or 159?
    – Jeff Schaller
    May 27 at 18:31















Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
– baselab
Jan 5 at 14:15




Is .zsh_history writable? What is the output of ls -l ~/.zsh_history ?
– baselab
Jan 5 at 14:15












@baselab, have updated my query with the answer you asked for.
– shirish
Jan 5 at 15:30




@baselab, have updated my query with the answer you asked for.
– shirish
Jan 5 at 15:30












What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
– G-Man
May 27 at 17:52




What is your basis for saying that it shows only a few entries and not all — what were you expecting, and why? Please do not respond in comments; edit your question to make it clearer and more complete.
– G-Man
May 27 at 17:52












Is this about the commands from 1 through 154, or 159?
– Jeff Schaller
May 27 at 18:31




Is this about the commands from 1 through 154, or 159?
– Jeff Schaller
May 27 at 18:31










1 Answer
1






active

oldest

votes

















up vote
1
down vote













In zsh, history does not (and not supposed to) show by default everything you have in .zsh_history, see this question: it shows only last 15 commands (7 in your case for some reason). To show everything, you'd rather type history 1, see this.






share|improve this answer



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    In zsh, history does not (and not supposed to) show by default everything you have in .zsh_history, see this question: it shows only last 15 commands (7 in your case for some reason). To show everything, you'd rather type history 1, see this.






    share|improve this answer
























      up vote
      1
      down vote













      In zsh, history does not (and not supposed to) show by default everything you have in .zsh_history, see this question: it shows only last 15 commands (7 in your case for some reason). To show everything, you'd rather type history 1, see this.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        In zsh, history does not (and not supposed to) show by default everything you have in .zsh_history, see this question: it shows only last 15 commands (7 in your case for some reason). To show everything, you'd rather type history 1, see this.






        share|improve this answer












        In zsh, history does not (and not supposed to) show by default everything you have in .zsh_history, see this question: it shows only last 15 commands (7 in your case for some reason). To show everything, you'd rather type history 1, see this.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 27 at 17:16









        Yury

        535




        535












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?