diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2024-01-05 16:07:32 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2024-01-05 16:07:32 -0500 |
commit | 8cb32e9c0c47f3f398aaba024131e938063560ac (patch) | |
tree | 247fe08705b62190a6f75e51ea8ad52cde7b3f79 /zsh | |
parent | 151ce93f4f0795ce7e1e6aa0e4965967525e13d8 (diff) |
zsh config
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 27 |
1 files changed, 7 insertions, 20 deletions
@@ -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 |