(Shell)+hlight alias+a ton of options for history in zsh
hlight alias highlights words via grep. Basic usage is for files but can also be used for piped input. Just a bit nicer to use. zsh history management makes zsh-fish-autocomplete an even more powerful tool (as it now has a giant history to read through instead of just a local history)
This commit is contained in:
19
Shell/.zshrc
19
Shell/.zshrc
@@ -14,6 +14,7 @@ alias paste="xclip -o"
|
|||||||
alias md="mkdir"
|
alias md="mkdir"
|
||||||
alias ls="ls --color"
|
alias ls="ls --color"
|
||||||
alias l="ls -la"
|
alias l="ls -la"
|
||||||
|
alias hlight="grep -i -C10 --color=always"
|
||||||
alias fzf="fd --hidden | fzf --layout=reverse --height=20"
|
alias fzf="fd --hidden | fzf --layout=reverse --height=20"
|
||||||
alias suctl="systemctl --user"
|
alias suctl="systemctl --user"
|
||||||
alias sedit="emacsclient -s MAIN -a emacs -c"
|
alias sedit="emacsclient -s MAIN -a emacs -c"
|
||||||
@@ -45,10 +46,22 @@ setopt autocd
|
|||||||
export ZSH_THEME="af-magic"
|
export ZSH_THEME="af-magic"
|
||||||
PS1="%B%F{128}(%n@%m)%B%F{64}[%(4~|...|)%3~]
|
PS1="%B%F{128}(%n@%m)%B%F{64}[%(4~|...|)%3~]
|
||||||
%F{white}>> %b%f%k"
|
%F{white}>> %b%f%k"
|
||||||
setopt histignorealldups sharehistory
|
|
||||||
|
|
||||||
HISTSIZE=10000
|
setopt BANG_HIST
|
||||||
SAVEHIST=10000
|
setopt EXTENDED_HISTORY
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt SHARE_HISTORY
|
||||||
|
setopt HIST_EXPIRE_DUPS_FIRST
|
||||||
|
setopt HIST_IGNORE_DUPS
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
setopt HIST_IGNORE_SPACE
|
||||||
|
setopt HIST_SAVE_NO_DUPS
|
||||||
|
setopt HIST_REDUCE_BLANKS
|
||||||
|
setopt HIST_VERIFY
|
||||||
|
HISTFILE="$HOME/.zsh_history"
|
||||||
|
HISTSIZE=1000000000
|
||||||
|
SAVEHIST=$HISTSIZE
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
compinit
|
compinit
|
||||||
|
|||||||
Reference in New Issue
Block a user