From 8cb32e9c0c47f3f398aaba024131e938063560ac Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 5 Jan 2024 16:07:32 -0500 Subject: zsh config --- zsh/.zshrc | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index e0dec6e..4f76c56 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,9 @@ +# History settings +HISTFILE=~/.zsh_history +HISTSIZE=1000000 +SAVEHIST=$HISTSIZE +setopt inc_append_history share_history histignorealldups + if [[ ${INSIDE_EMACS} == *comint* ]]; then TERM=xterm-256color unsetopt zle @@ -8,12 +14,7 @@ if [[ ${TERM} = "dumb" ]]; then PS1='$ ' return 0 fi -# 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 + eval "$(starship init zsh)" # Resources: @@ -31,12 +32,6 @@ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} # Don't skip over symbols, e.g., when deleting a word from a path. WORDCHARS='' -# History settings -HISTFILE=~/.zsh_history -HISTSIZE=1000000 -SAVEHIST=$HISTSIZE -setopt inc_append_history share_history histignorealldups - # source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme # cd to a directory used as a commant @@ -69,11 +64,6 @@ fi # Issues when typing 'ssh root@' with fast syntax hilighting. if [[ -n ${INSIDE_EMACS} ]]; then source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh - # source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh - # if [[ ! -f ~/.zsh/fast-syntax-highlighting/current_theme.zsh ]]; then - # fpath+=$HOME/.zsh/fast-syntax-highlighting - # fast-theme clean - # fi fi # allow editing of command line @@ -97,6 +87,3 @@ bindkey "^[u" get-parent-dir source ~/.zshrc.local (( $+commands[direnv] )) && eval "$(direnv hook zsh)" - -# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.zsh/p10k.zsh ]] || source ~/.zsh/p10k.zsh -- cgit v1.2.3