mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
fix previous commit
This commit is contained in:
parent
b027b2bb0a
commit
deb659dbe3
11
zshrc
11
zshrc
@ -20,7 +20,7 @@ promptinit
|
|||||||
PS1="%B%(!.%F{red}.%F{green})%n@%m %~
|
PS1="%B%(!.%F{red}.%F{green})%n@%m %~
|
||||||
%#%f%b "
|
%#%f%b "
|
||||||
|
|
||||||
setopt histignorealldups sharehistory APPEND_HISTORY SHARE_HISTORY
|
setopt histignorealldups sharehistory
|
||||||
|
|
||||||
# Use emacs keybindings even if our EDITOR is set to vi
|
# Use emacs keybindings even if our EDITOR is set to vi
|
||||||
bindkey -e
|
bindkey -e
|
||||||
@ -29,6 +29,15 @@ HISTCONTROL=ignoredups
|
|||||||
export HISTSIZE=9999999999
|
export HISTSIZE=9999999999
|
||||||
export HISTFILESIZE=99999999999
|
export HISTFILESIZE=99999999999
|
||||||
export HISTTIMEFORMAT='%F %T '
|
export HISTTIMEFORMAT='%F %T '
|
||||||
|
export HISTFILE=~/.zsh_history
|
||||||
|
|
||||||
|
HISTSIZE=9999999999
|
||||||
|
if (( ! EUID )); then
|
||||||
|
HISTFILE=~/.history_root
|
||||||
|
else
|
||||||
|
HISTFILE=~/.history
|
||||||
|
fi
|
||||||
|
SAVEHIST=9999999999
|
||||||
|
|
||||||
# Use modern completion system
|
# Use modern completion system
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
|
Loading…
Reference in New Issue
Block a user