fix: Startup times
- Removed `compinit` call - Stopped loading ohmyzsh/ohmyzsh path:lib - Turned off p10k instant prompt
This commit is contained in:
parent
d8f14a58e6
commit
f99d6a7d46
28
zsh.nix
28
zsh.nix
@ -20,12 +20,6 @@
|
|||||||
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
completionInit = ''
|
completionInit = ''
|
||||||
# Basic auto/tab complete:
|
|
||||||
autoload -U compinit
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
zmodload zsh/complist
|
|
||||||
compinit
|
|
||||||
_comp_options+=(globdots) # Include hidden files.
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
autosuggestion = {
|
autosuggestion = {
|
||||||
@ -46,8 +40,9 @@
|
|||||||
antidote = {
|
antidote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
"getantidote/use-omz" # Handle OMZ dependencies
|
"getantidote/use-omz" # Handle OMZ dependencies
|
||||||
"ohmyzsh/ohmyzsh path:lib" # Load OMZ's library
|
# Load lib only if things break
|
||||||
|
# "ohmyzsh/ohmyzsh path:lib" # Load OMZ's library
|
||||||
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages" # Load OMZ plugins
|
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages" # Load OMZ plugins
|
||||||
# "ohmyzsh/ohmyzsh path:plugins/magic-enter"
|
# "ohmyzsh/ohmyzsh path:plugins/magic-enter"
|
||||||
"ohmyzsh/ohmyzsh path:plugins/command-not-found" # Provide suggested packages to be installed if a command cannot be found
|
"ohmyzsh/ohmyzsh path:plugins/command-not-found" # Provide suggested packages to be installed if a command cannot be found
|
||||||
@ -79,15 +74,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
|
# Basic auto/tab complete:
|
||||||
|
ZSH_COMPDUMP="$ZSH_CACHE/.zcompdump-''${SHORT_HOST}-''${ZSH_VERSION}"
|
||||||
|
autoload -U compinit -d ''${ZSH_COMPDUMP}
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
zmodload zsh/complist
|
||||||
|
_comp_options+=(globdots) # Include hidden files.
|
||||||
|
|
||||||
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
||||||
zmodload zsh/zprof # Profiling. Enable `zprof` at the end of initExtra too.
|
zmodload zsh/zprof # Profiling. Enable `zprof` at the end of initExtra too.
|
||||||
# else
|
|
||||||
# # 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
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -145,12 +140,9 @@
|
|||||||
alias kclip="kitty +kitten clipboard"
|
alias kclip="kitty +kitten clipboard"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Special aliases that may not work with Nix config
|
|
||||||
# Command line head / tail shortcuts
|
|
||||||
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
||||||
zprof
|
zprof
|
||||||
fi
|
fi
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
localVariables = {
|
localVariables = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user