Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: HISTSIZE and prompt



Zhong, Kaixiang wrote:
>In .zshrc, I set HISTSIZE to 100, and it does store previous 100
>commands.
>However, when I type history, it only shows last 16 commands.
>Is there any other variables I should set?

If you type "history 1" it will show you the entire history.

>3) dir=/home/kzhong/dir/mydir
>and after I 'cd ~dir', my prompt looks like "~/dir/mydir" instead of
>"~dir".

If you actually did "cd ~dir" then your prompt should look right.  Did you
possibly do "cd ~/dir/mydir" or something similar?  zsh will only display
the directory as "~dir" if you have already used "~dir" in a command.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author