diff options
Diffstat (limited to 'kj-laptop01/home.nix')
| -rw-r--r-- | kj-laptop01/home.nix | 49 |
1 files changed, 2 insertions, 47 deletions
diff --git a/kj-laptop01/home.nix b/kj-laptop01/home.nix index b450887..7d18022 100644 --- a/kj-laptop01/home.nix +++ b/kj-laptop01/home.nix @@ -50,6 +50,7 @@ ]; extraLuaConfig = '' require("lazyvim").setup() + ${builtins.readFile ./lazyvim-config.lua} ''; }; @@ -84,53 +85,7 @@ ignoreDups = false; }; - initContent = '' - # Initialize completion system - autoload -Uz compinit - compinit - - # Initialize prompt system - autoload -Uz promptinit - promptinit - - # Set options - setopt extendedglob nomatch notify - - # Define gentoo prompt theme - prompt_gentoo_help () { - cat <<'EOF' - This prompt is color-scheme-able. You can invoke it thus: - - prompt gentoo [<promptcolor> [<usercolor> [<rootcolor>]]] - - EOF - } - - prompt_gentoo_setup () { - local prompt_gentoo_prompt=''${1:-'blue'} - local prompt_gentoo_user=''${2:-'green'} - local prompt_gentoo_root=''${3:-'red'} - - if [ "$USER" = 'root' ] - then - local base_prompt="%B%F{$prompt_gentoo_root}%m%k " - else - local base_prompt="%B%F{$prompt_gentoo_user}%n@%m%k " - fi - local post_prompt="%b%f%k" - - local path_prompt="%B%F{$prompt_gentoo_prompt}%1~" - typeset -g PS1="$base_prompt$path_prompt %# $post_prompt" - typeset -g PS2="$base_prompt$path_prompt %_> $post_prompt" - typeset -g PS3="$base_prompt$path_prompt ?# $post_prompt" - } - - # Register the prompt with promptinit - prompt_themes+=( gentoo ) - - # Use the gentoo prompt - prompt gentoo - ''; + initContent = builtins.readFile ./zsh-config.zsh; }; # FZF with standard keybindings |
