summaryrefslogtreecommitdiff
path: root/lib/history.zsh
AgeCommit message (Collapse)Author
2020-11-09Revert "lib: remove share_history"Marc Cornellà
This reverts commit 23760228908d14a4644718869d5ebfb7b0dde6a7. Fixes #9430
2020-10-27lib: delete zsh session history listMarc Cornellà
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to restore it.
2020-10-10lib: remove share_historyMarc Cornellà
Related: #2537, #9324
2020-06-03lib: don't override bigger HISTSIZE and SAVEHIST values (#8993)Marco Trevisan
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.
2020-05-21core: remove inc_append_history option (#8048)Benoit GALATI
2020-05-20Revert "core: enable hist_reduce_blanks"Marc Cornellà
This reverts commit cbd6fbe7a7c3ef260f497704092dc43f2e953c3f. Fixes #8949
2020-05-16core: enable hist_reduce_blanksMarc Cornellà
Fixes #8722
2019-04-09lib: fix issues with nounset and parameters used before defined (#7433)David Remy
2018-09-15lib: fix history wrapper when passing numbersMarc Cornellà
If a number is passed without explicitly passing `-l`, it will now behave as if using the history builtin, instead of throwing an error.
2018-07-13Add support for custom timestamp format in history (#6770)Cristian Consonni
2018-04-22Increment HISTSIZE to fix hist_expire_dups_firstMarc Cornellà
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.
2018-04-22Remove duplicate option append_historyMarc Cornellà
The option inc_append_history already has the same effect.
2018-04-22Use zparseopts to get passed argumentsMarc Cornellà
2018-04-22Allow overriding -l flag in historyMarc Cornellà
2018-04-22Ensure builtin fc is used (see #3001)Marc Cornellà
2018-04-22Organize history.zsh file and improve commentsMarc Cornellà
2018-04-22Simplify `if' into oneliner, allow spaces in HISTFILEMarc Cornellà
2018-04-22Change history alias into a functionMarc Cornellà
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.
2015-02-10Refactors history alias and moves it.LFDM
More compact case statement instead of the ugly if elif... else statement. Moves it to history.zsh
2014-12-15Revert PR #3359 as this is breaking stuff for many folks. Need to rethink ↵Robby Russell
how we handle system defaults differently on this
2014-11-30Existing code indents with spaces, not tabs, conform.Joe Block
2014-11-30Don't clobber HISTSIZE or SAVEHIST if they're already setJoe Block
2014-03-22Merge pull request #750 from blueyed/history-drop-default-append-historyRobby Russell
`setopt append_history` is not necessary.
2013-03-15allow setting a custom HISTFILE before oh-my-zsh is loadedFlavius Aspra
2011-12-16`setopt append_history` is not necessary.Daniel Hahler
Especially given the inc_append_history option, it is not necessary to set the (default) append_history option.
2011-12-03Removed duplicate setting and sorted the remainingGöran Gustafsson
2010-06-05Ignore commands that start with a space.James Rowe
This is useful when you want to use a dangerous command, as it won't be available with history searching.
2010-05-08share history with your zsh's on the same hostMike Hostetler
2009-09-23merge upstreamJames Cox
2009-09-23Bumping up history to 10k commandsRobby Russell
2009-09-23Moving all zsh config options into a lib/ subdirectory to make way for some ↵Robby Russell
upcoming changes to directory structure and configuration options