From 7b045534704d2da85e9cb09fd823fddb3ab0a6f2 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:32:23 +0200 Subject: [PATCH] add nixshell to zsh & starship --- home/programs/shell/starship.nix | 1 + home/programs/shell/zsh.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/home/programs/shell/starship.nix b/home/programs/shell/starship.nix index f9cdf34..138f755 100644 --- a/home/programs/shell/starship.nix +++ b/home/programs/shell/starship.nix @@ -9,6 +9,7 @@ in { settings = { add_newline = true; format = lib.concatStrings [ + "$nix_shell" "$hostname" "$directory" "$git_branch" diff --git a/home/programs/shell/zsh.nix b/home/programs/shell/zsh.nix index 76e0793..92755bd 100644 --- a/home/programs/shell/zsh.nix +++ b/home/programs/shell/zsh.nix @@ -100,6 +100,8 @@ in { "nvim ~/nextcloud/notes/index.md --cmd 'cd ~/nextcloud/notes' -c ':Telescope find_files'"; note = "notes"; + nix-shell = "nix-shell --command zsh"; + # git g = "lazygit"; ga = "git add";