46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=1000
|
|
SAVEHIST=1000
|
|
bindkey -v
|
|
# End of lines configured by zsh-newuser-install
|
|
# The following lines were added by compinstall
|
|
zstyle :compinstall filename '/home/datalore/.zshrc'
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
autoload -Uz vcs_info
|
|
zstyle ':vcs_info:*' enable git
|
|
zstyle ':vcs_info:git*' formats " (%b) "
|
|
precmd() {
|
|
vcs_info
|
|
}
|
|
|
|
setopt HIST_IGNORE_SPACE
|
|
setopt prompt_subst
|
|
#PROMPT="%B%F{2}[%y] %n@%m %F{7}%2~"$'\n'"%F{2}%(!.#.λ) %f%b"
|
|
#PROMPT="%B%F{7}%K{1} %y %K{7} %F{1}%n%m %k%F{7} %2~"$'\n'"%F{1}%(!.#.) %f%b"
|
|
PROMPT='%B%F{7}%K{6} %y %K{7} %F{6}%n%m %k%F{7} %2~'$'\n''%F{6}${vcs_info_msg_0_}%(!.#.) %f%b'
|
|
#RPROMPT="%B%F{7}%K{1} %(?.✓.✗) %k%f%b"
|
|
RPROMPT="%B%F{7}%K{6} %(?.✓.✗) %k%f%b"
|
|
ZLE_RPROMPT_INDENT=0
|
|
|
|
source /home/datalore/.datalorerc
|
|
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
|
zmodload zsh/terminfo
|
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
|
bindkey "^[[A" history-substring-search-up
|
|
bindkey "^[[B" history-substring-search-down
|
|
|
|
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
|
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
alias -s git "git clone" # expand git links to git clone command
|
|
|
|
eval "$(zoxide init --cmd cd zsh)"
|