ZSH iterm2 increase number of lines history
Not sure if this is zsh, iterm2 or the interaction between them. Trying to change the number of recallable lines in the terminal - not the command history, the output history.
In .zshrc I have :
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
This seems to be ignored =(
Not sure of the correct term to google, "Terminal output history?"
It's not immediately obvious in the iTerm2 documentation on how to change it.
- open the iTerm2 preferences ⌘ + ,
- select the Profiles tab
- then select the Terminal subtab
- Beware, changes to the
Scrollback lines
value take effect immediately so checkUnlimited scrollback
now if you don't want to delete your current buffer(s) - change the value of the
Scrollback Lines
to whatever you'd like - Uncheck the
Unlimited scrollback
option if you'd like to use yourScrollback lines
value
It's not a shell problem, it's about your terminal emulator.
You have to find the option in the configuration / options / tools / whatever, for the number of lines to remember.
Apparently you know your terminal emulator is iterm2.
Looking for iterm2 on the google will lead you to the official website, then go to 'Documentation', Ctrl+F 'number' and find
Scrollback lines
The number of lines of scrollback buffer to keep above the visible part of the screen.
With zsh and iTerm2 Build 3.2.5, an additional step is required: Preferences->Profiles->terminal->check UnlimitedScrollback
->Check save lines to scrollback when an app status bar is present
Scrolling was breaking for me without the last one.
참고URL : https://stackoverflow.com/questions/12459755/zsh-iterm2-increase-number-of-lines-history
'Development Tip' 카테고리의 다른 글
VS2017 / VS 2019 작업 표시 줄에서 관리자 권한으로 실행 (0) | 2020.09.25 |
---|---|
Windows에서 GPG 파일을 해독하기 위해 개인 / 비밀 ASC 키를 내보내는 방법 (0) | 2020.09.25 |
How to check if a column exists in a datatable (0) | 2020.09.25 |
How to get the current url name using Django? (0) | 2020.09.25 |
can't get correct value of keyboard height in iOS8 (0) | 2020.09.25 |