| Age | Commit message (Collapse) | Author |
|
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
|
|
See https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2171461005
|
|
Logic error in `history -c` when prompting for confirmation caused history
to be deleted when typing anything but explicitly `n`, `N`, or sending `\n`.
New logic prevents deletion by pressing wrong key and only deletes
history when sending `y` or `Y`.
Co-authored-by: Sargates <nicholas.g.glenn@gmail.com>
|
|
(#12472)
|
|
The `t` option takes a strftime format specification as argument. This
fixes cases in which $HIST_STAMPS is set to a value other than
`mm/dd/yyyy|dd.mm.yyyy|yyyy-mm-dd`.
|
|
Fixes #12362
|
|
|
|
* Fixed a bug in *omz_history* where it would automatically create a file when run with the -p flag
* Reverted old history behaviour while fixing parsing bug
|
|
BREAKING CHANGE: we have fixed a bug in the `history` wrapper for OMZ which means
that running just history will now not show all the history since the 1st command,
but only recent ones. To get the previous behavior, you can run `history 1` to get
all the command history, or other commands such as `history -30` to get the last
30 commands.
|
|
This reverts commit 23760228908d14a4644718869d5ebfb7b0dde6a7.
Fixes #9430
|
|
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to
restore it.
|
|
Related: #2537, #9324
|
|
oh-my-zsh Changes the HISTSIZE and SAVEHIST values to fixed sizes,
however if a bigger value is set in ~/.zshrc, it will override it,
potentially causing the user history to be deleted.
So, only set these values if no other is set and if it is lower than the
default ones.
|
|
|
|
This reverts commit cbd6fbe7a7c3ef260f497704092dc43f2e953c3f.
Fixes #8949
|
|
Fixes #8722
|
|
|
|
If a number is passed without explicitly passing `-l`, it will now behave
as if using the history builtin, instead of throwing an error.
|
|
|
|
This fixes the old behavior which made it so all duplicates would be
deleted if the command history filled up with unique events.
> You should be sure to set the value of HISTSIZE to a larger number
> than SAVEHIST in order to give you some room for the duplicated
> events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS
> once the history fills up with unique events.
|
|
The option inc_append_history already has the same effect.
|
|
|
|
|
|
|
|
|
|
|
|
This commit changes the history alias into a function which puts
the passed arguments before `-l 1`. It also provides a temporary
workaround to the lack of a `history -c` command in zsh.
For more information see issues 739 and 789.
|
|
More compact case statement instead of the ugly if elif... else
statement. Moves it to history.zsh
|
|
how we handle system defaults differently on this
|
|
|
|
|
|
`setopt append_history` is not necessary.
|
|
|
|
Especially given the inc_append_history option, it is not necessary to
set the (default) append_history option.
|
|
|
|
This is useful when you want to use a dangerous command, as it won't be
available with history searching.
|
|
|
|
|
|
|
|
upcoming changes to directory structure and configuration options
|