From b7c6ee6efce7f9831ace3f7b6d72d1d7ffce6433 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 5 Jan 2025 03:56:14 -0800 Subject: nara: add zsh prompt --- home/ebisu/nara/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'home/ebisu/nara') diff --git a/home/ebisu/nara/default.nix b/home/ebisu/nara/default.nix index 7686310..b6aff7d 100644 --- a/home/ebisu/nara/default.nix +++ b/home/ebisu/nara/default.nix @@ -9,10 +9,20 @@ file = { ".hushlogin".text = ""; - ".zshrc".text = '' - source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh - source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh - ''; + ".zshrc".text = + let + agkozak-zsh-prompt = pkgs.fetchFromGitHub { + owner = "agkozak"; + repo = "agkozak-zsh-prompt"; + rev = "v3.11.4"; + hash = "sha256-FC9LIZaS6fV20qq6cJC/xQvfsM3DHXatVleH7yBgoNg="; + }; + in + '' + source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh + source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh + source ${agkozak-zsh-prompt}/agkozak-zsh-prompt.plugin.zsh + ''; }; packages = with pkgs; [ -- cgit v1.2.3