Marc Cornellà
5a729f6667
lib: fix history wrapper when passing numbers
...
If a number is passed without explicitly passing `-l`, it will now behave
as if using the history builtin, instead of throwing an error.
8 years ago
Cristian Consonni
d3e3b2dd0d
Add support for custom timestamp format in history ( #6770 )
8 years ago
Marc Cornellà
2589cdd8f9
Increment HISTSIZE to fix hist_expire_dups_first
...
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.
8 years ago
Marc Cornellà
9f2f22d953
Remove duplicate option append_history
...
The option inc_append_history already has the same effect.
8 years ago
Marc Cornellà
20d63be655
Use zparseopts to get passed arguments
8 years ago
Marc Cornellà
f8180c3a64
Allow overriding -l flag in history
8 years ago
Marc Cornellà
03758416fe
Ensure builtin fc is used (see #3001 )
8 years ago
Marc Cornellà
643bb25a0d
Organize history.zsh file and improve comments
8 years ago
Marc Cornellà
94baa9eadd
Simplify `if' into oneliner, allow spaces in HISTFILE
8 years ago
Marc Cornellà
d87d4331cf
Change history alias into a function
...
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.
8 years ago
LFDM
d33b0aae91
Refactors history alias and moves it.
...
More compact case statement instead of the ugly if elif... else
statement. Moves it to history.zsh
11 years ago
Robby Russell
1978a0923c
Revert PR #3359 as this is breaking stuff for many folks. Need to rethink how we handle system defaults differently on this
11 years ago
Joe Block
5bf715787a
Existing code indents with spaces, not tabs, conform.
11 years ago
Joe Block
1ebc98b9ed
Don't clobber HISTSIZE or SAVEHIST if they're already set
11 years ago
Daniel Hahler
b578eea273
`setopt append_history` is not necessary.
...
Especially given the inc_append_history option, it is not necessary to
set the (default) append_history option.
12 years ago
Flavius Aspra
3826c7bf85
allow setting a custom HISTFILE before oh-my-zsh is loaded
13 years ago
Daniel Hahler
98578ec241
`setopt append_history` is not necessary.
...
Especially given the inc_append_history option, it is not necessary to
set the (default) append_history option.
14 years ago
Göran Gustafsson
3fc812afc9
Removed duplicate setting and sorted the remaining
15 years ago
James Rowe
edc8e3d092
Ignore commands that start with a space.
...
This is useful when you want to use a dangerous command, as it won't be
available with history searching.
16 years ago
Mike Hostetler
93f9825b79
share history with your zsh's on the same host
16 years ago
Robby Russell
ff545e6934
Bumping up history to 10k commands
17 years ago
Robby Russell
8debd097fb
Moving all zsh config options into a lib/ subdirectory to make way for some upcoming changes to directory structure and configuration options
17 years ago
James Cox
556ee4198f
tidy up history
17 years ago
James Cox
8fe67686db
would rather store history in $HOME and double size
17 years ago
Robby Russell
5da20b9ddd
Importing initial files after reorganizing stuff.
17 years ago