summaryrefslogtreecommitdiff
path: root/lib/history.zsh
AgeCommit message (Collapse)Author
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