flake-update-20260505
1# Shell options and history
2
3setopt HIST_FCNTL_LOCK
4setopt EXTENDED_HISTORY
5setopt HIST_EXPIRE_DUPS_FIRST
6setopt HIST_IGNORE_DUPS
7setopt HIST_IGNORE_SPACE
8setopt SHARE_HISTORY
9setopt autocd
10
11autoload -Uz select-word-style; select-word-style bash
12
13# Dumb terminal fallback (Emacs TRAMP, etc.)
14if [[ "$TERM" == "dumb" || "$TERM" == "emacs" ]]; then
15 TERM=eterm-color
16 unsetopt zle
17 unsetopt prompt_cr
18 unsetopt prompt_subst
19 unfunction precmd 2>/dev/null
20 unfunction preexec 2>/dev/null
21 PS1='$ '
22 return
23fi
24
25# Profiling support: DEBUG_ZSH_PERF=1 zsh -i
26if (( ${+DEBUG_ZSH_PERF} )); then
27 zmodload zsh/zprof
28fi