66 lines
2.0 KiB
Cheetah
66 lines
2.0 KiB
Cheetah
# Profiling
|
|
# https://esham.io/2018/02/zsh-profiling
|
|
# See ~/prog/zsh_sort_timings.zsh to sort results
|
|
#zmodload zsh/datetime
|
|
#setopt PROMPT_SUBST
|
|
#PS4='+$EPOCHREALTIME %N:%i> '
|
|
#logfile=$(mktemp zsh_profile.XXXXXXXX)
|
|
#echo "Logging to $logfile"
|
|
#exec 3>&2 2>$logfile
|
|
#setopt XTRACE
|
|
|
|
bindkey -e
|
|
export HISTFILE=~/.histfile
|
|
HISTSIZE=100000
|
|
SAVEHIST=100000
|
|
|
|
setopt appendhistory
|
|
setopt inc_append_history
|
|
setopt share_history
|
|
setopt extended_history
|
|
#setopt print_exit_value
|
|
setopt extendedglob
|
|
setopt nomatch
|
|
|
|
#source ~/.zinit/bin/zinit.zsh
|
|
#zinit load zsh-users/zsh-autosuggestions
|
|
#zinit light zdharma/history-search-multi-word
|
|
#zinit snippet OMZ::plugins/bgnotify/bgnotify.plugin.zsh
|
|
#zinit ice as"completion"
|
|
#zinit snippet OMZ::plugins/pass/_pass
|
|
#zinit wait lucid atload"zicompinit; zicdreplay" blockf for zsh-users/zsh-completions
|
|
|
|
zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories
|
|
zstyle ':completion:*' menu select=2
|
|
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
|
zstyle ':completion:*:rm:*' ignore-line yes
|
|
zstyle ':completion:*:mv:*' ignore-line yes
|
|
zstyle ':completion:*:cp:*' ignore-line yes
|
|
zstyle ':completion:::::' completer _expand _complete _ignored _approximate
|
|
zstyle ':completion::complete:*' use-cache on # completion caching, use rehash to clear
|
|
zstyle ':completion:*' cache-path ~/.zsh/cache # cache path
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # ignore case
|
|
|
|
export fpath=($HOME/.zsh/completions $fpath)
|
|
source ~/.zsh/aliases
|
|
source ~/.zsh/functions
|
|
source ~/.zsh/exports
|
|
|
|
{{- if eq .chezmoi.hostname "taupo" }}
|
|
source ~/.zsh/aliases_taupo
|
|
source ~/.zsh/functions_taupo
|
|
source ~/.config/broot/launcher/bash/br
|
|
source /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh
|
|
#source /usr/share/doc/fzf/examples/key-bindings.zsh
|
|
source /usr/share/doc/fzf/examples/completion.zsh
|
|
eval "$(zoxide init zsh)"
|
|
{{- end }}
|
|
eval "$(starship init zsh)"
|
|
source <(antibody init)
|
|
antibody bundle < ~/.zsh_plugins
|
|
|
|
# Profiling
|
|
#unsetopt XTRACE
|
|
#exec 2>&3 3>&-
|
|
|