diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2025-02-27 19:23:47 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2025-02-27 19:23:47 -0500 |
commit | 45612fea097daaf67976fcbf41b455f5c4f980e5 (patch) | |
tree | 052e8f929df0b818b092a55c55749368722eca6a /zsh | |
parent | ea237e48a00955b4a0cd39ba142964b35f9b7edf (diff) |
Updates
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 38 |
1 files changed, 13 insertions, 25 deletions
@@ -2,34 +2,33 @@ setopt inc_append_history share_history histignorealldups if [[ ${INSIDE_EMACS} == *comint* ]]; then PAGER=cat - TERM=xterm-256color unsetopt zle -fi -if [[ ${TERM} = "dumb" ]]; then - # This fixes TRAMP. - unsetopt zle - PS1='$ ' - return 0 -fi +else + PS1='%F{cyan}%~ %(?.%F{green}.%F{red})%#%f ' + source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh +fi; +# if [[ ${TERM} = "dumb" ]]; then +# # This fixes TRAMP. +# unsetopt zle +# PS1='$ ' +# return 0 +# fi -PS1='%F{cyan}%~ %(?.%F{green}.%F{red})%#%f ' # Resources: # https://github.com/mika/zsh-pony bindkey -e -autoload -Uz compinit; compinit -autoload -Uz promptinit; promptinit - zstyle ':completion:*' menu select zstyle ':completion::complete:*' gain-privileges 1 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +autoload -Uz compinit; compinit +autoload -Uz promptinit; promptinit + # Don't skip over symbols, e.g., when deleting a word from a path. WORDCHARS='' -# source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme - # cd to a directory used as a commant setopt autocd @@ -38,8 +37,6 @@ setopt interactivecomments alias ls="ls --color" alias e="emacsclient -n" -# Never got used to this. -# (( $+commands[exa] )) && alias ls="exa" if (( $+commands[fzf] )); then if (( $+commands[fzf-share] )); then @@ -53,15 +50,6 @@ if (( $+commands[fzf] )); then fi fi -if (( $+commands[zoxide] )); then - eval "$(zoxide init zsh)" -fi - -# Issues when typing 'ssh root@' with fast syntax hilighting. -if [[ -n ${INSIDE_EMACS} ]]; then - source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh -fi - # allow editing of command line autoload -U edit-command-line zle -N edit-command-line |