aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-28 08:28:46 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-28 08:28:46 -0800
commit34de92527497a08861c755e2effc470255bf4bf4 (patch)
tree724fb7616fbb858960d2b8fdb6dd1a0ff1e4e8f3 /nix
parentdrop aspell and set editor to code (diff)
downloadinfra-34de92527497a08861c755e2effc470255bf4bf4.tar.gz
enable starship
Diffstat (limited to 'nix')
-rw-r--r--nix/users/fcuny/shell.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nix/users/fcuny/shell.nix b/nix/users/fcuny/shell.nix
index 9bae765..36b4267 100644
--- a/nix/users/fcuny/shell.nix
+++ b/nix/users/fcuny/shell.nix
@@ -52,6 +52,32 @@ in
};
};
+ # https://github.com/nix-community/home-manager/blob/master/modules/programs/starship.nix
+ programs.starship = {
+ enable = true;
+ enableFishIntegration = true;
+ enableBashIntegration = true;
+ enableZshIntegration = false;
+ settings = {
+ add_newline = false;
+ character = {
+ success_symbol = "[λ](bold green)";
+ error_symbol = "[λ](bold red)";
+ };
+ username = {
+ show_always = true;
+ };
+ hostname = {
+ ssh_only = true;
+ };
+ directory = {
+ truncation_length = 1;
+ truncate_to_repo = false;
+ fish_style_pwd_dir_length = 1;
+ };
+ };
+ };
+
# an alternative to ls
programs.eza = {
enable = true;