summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2025-02-27 19:23:47 -0500
committerKjetil Orbekk <kj@orbekk.com>2025-02-27 19:23:47 -0500
commit45612fea097daaf67976fcbf41b455f5c4f980e5 (patch)
tree052e8f929df0b818b092a55c55749368722eca6a /zsh
parentea237e48a00955b4a0cd39ba142964b35f9b7edf (diff)
Updates
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc38
1 files changed, 13 insertions, 25 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 1307a9e..3fa06b4 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -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