mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
More adjustments to zsh setup
This commit is contained in:
parent
423eac2431
commit
9029adb9c6
3 changed files with 5 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ alias please='sudo'
|
||||||
|
|
||||||
# Show history
|
# Show history
|
||||||
# alias history='fc -l 1'
|
# alias history='fc -l 1'
|
||||||
|
alias his = 'fc -l 1'
|
||||||
|
|
||||||
# List direcory contents
|
# List direcory contents
|
||||||
alias lsa='ls -lah'
|
alias lsa='ls -lah'
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
if [ -z $HISTFILE ]; then
|
if [ -z $HISTFILE ]; then
|
||||||
HISTFILE=$HOME/.zsh_history
|
HISTFILE=$HOME/.zsh_history
|
||||||
fi
|
fi
|
||||||
HISTSIZE=100000
|
HISTSIZE=200000
|
||||||
SAVEHIST=100000
|
SAVEHIST=2000000
|
||||||
|
|
||||||
setopt append_history
|
setopt append_history
|
||||||
setopt extended_history
|
setopt extended_history
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
alias h='history'
|
alias h='his'
|
||||||
|
|
||||||
function hs
|
function hs
|
||||||
{
|
{
|
||||||
history | grep $*
|
h | grep $*
|
||||||
}
|
}
|
||||||
|
|
||||||
alias hsi='hs -i'
|
alias hsi='hs -i'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue