47 lines
1.7 KiB
Bash
47 lines
1.7 KiB
Bash
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
# Initialization code that may require console input (password prompts, [y/n]
|
|
# confirmations, etc.) must go above this block; everything else may go below.
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=100000
|
|
SAVEHIST=100000
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt autocd extendedglob nomatch notify
|
|
unsetopt beep
|
|
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Za-z}'
|
|
# End of lines configured by zsh-newuser-install
|
|
# The following lines were added by compinstall
|
|
zstyle :compinstall filename '/home/hirad/.zshrc'
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
autoload -Uz select-word-style
|
|
select-word-style bash
|
|
|
|
d=.dircolors
|
|
test -r $d && eval $(dircolors $d)
|
|
|
|
source_if_exist() {
|
|
[[ -f "$1" ]] && source "$1"
|
|
}
|
|
|
|
source_if_exist ~/.zsh/themes/dracula-zsh-syntax-highlighting.zsh
|
|
source_if_exist /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
|
source_if_exist ~/.zsh/keys.zsh
|
|
source_if_exist ~/.zsh/aliases.zsh
|
|
source_if_exist /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
source_if_exist /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source_if_exist ~/.zsh/themes/dracula.zsh
|
|
|
|
[[ -f /usr/bin/zoxide ]] && eval "$(zoxide init zsh)"
|
|
___MY_VMOPTIONS_SHELL_FILE="${HOME}/.jetbrains.vmoptions.sh"; if [ -f "${___MY_VMOPTIONS_SHELL_FILE}" ]; then . "${___MY_VMOPTIONS_SHELL_FILE}"; fi
|