2
votes
2answers
109 views

How to look at the past directory history the shell was in?

Sometimes I like to look back in the command history to figure out what I was doing. Sometimes it would help to know what the cwd was for each command. So, I'm wondering if there's some way to track ...
8
votes
8answers
634 views

Per-directory bash/zsh history log files

I find I do a lot of work on a project in a set directory. Sometimes — a few months down the track — I need to redo something on that project but I can't remember what I did. I use ...
8
votes
2answers
905 views

Can I use Vim editing mode on the command line without losing recursive history search?

I'm uzing zsh and, because I'm an avid Vim user, I just switched to using Vim-style editing on the command line. (That means if I type ls foo/bar and decide I want to cd instead, I can hit Esc ^ to ...
7
votes
2answers
696 views

reverse history search with regular expressions

I'm looking for a tool to allow reverse incremental searching with simple regular expression (or just multiple matches) support. For example, if I want to find the command 'foo bar baz', I could do ...
6
votes
2answers
997 views

zsh, up arrow only repeats unique commands?

I'm looking for a setting that will make it so that when i hit the up arrow, zsh shows commands i have recently edited. The catch is, i only want unique commands. Currently, if i type echo "hello ...
5
votes
2answers
2k views

Cycle through matches in ZSH history-incremental-pattern-search-backward

I recently switched the history search to use history-incremental-pattern-search-backward since it allows for patterns in the search. Here is how it is setup in my .zshrc bindkey -M vicmd '/' ...
10
votes
1answer
1k views

ZSH only displaying last 16 or so commands with history. HISTSIZE & SAVEHIST are 500

In ZSH when I type history I'm only displayed the last 16 or so commands. I would like history to display all the existing commands in the history file. When I look in my .zsh_history (my history ...