Terminal - history scroll up no longer working

Terminal app broken since last upgrade - I used to be able to scroll back through the window history by holding down fn + UpArrow, no longer works -- any clue how to fix, thx.




MacBook Pro 15″, macOS 12.0

Posted on Aug 4, 2022 3:19 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 4, 2022 3:59 AM

I had it set to "Number of Rows determined by free memory" -- my disk was very full, I deleted some files and now history is back on -- I guess I am using SWAP RAM and it's running very low.


thx for response

4 replies

Aug 4, 2022 4:09 AM in response to SmithIT2000

If you are using Zsh as your shell in Monterey, each time the Terminal is quit, and relaunched, there is no scrollable history available in the new Terminal window until you issue new commands. The following commands will show a brief, or entire history. The assumption is that one knows how to correctly configure history in the ~/.zshrc startup file:


# brief history since Terminal was launched
history
# entire history across multiple Terminal launches
history 1


and the following Zsh function placed in your ~/.Zshrc file can act like grep across all history to find a command or argument to a command:


hgrep () { fc -Dlim "*$@*" 1 }


For instance, to locate the history item where I opened a custom AppleScript to flatten a PDF:


hgrep flat

992 2022-08-04 07:00 0:00 open flatxPDF.applescript


No need to scroll through any history with this Zsh function.



Aug 4, 2022 4:17 AM in response to SmithIT2000

Welcome


Picking up on " . . . my disk was very full, I deleted some file. . . "


It is suggested to keep at least 15%  to 20% of the Drive Total Capacity as Empty Space for good operations of the computer and for additional updates to Monterey to download, expand and install.


If the computer Drive gets too FULL - odd behaviours will occur including a Warning from the OS that " The Drive is Running out of Space ".


If that occurs and the user ( you) does not action this condition, the computer may cease to boot up at all.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal - history scroll up no longer working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.