From edbe4e1832220032b4625adbc82413eec40140c3 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 27 Sep 2023 10:56:21 +0200 Subject: Misc. shell niceties --- home/zsh/default.nix | 3 +++ hosts/common.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 1b8ce16..91c7ba3 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -16,6 +16,9 @@ dotDir = ".config/zsh"; history.path = config.xdg.cacheHome + "/zsh/history"; + initExtra = '' + PROMPT='%F{41}->%f %B%(2L.LVL%L .)%b%F{red}%(?..E%? )%f%n@%U%m%u:%15<...<%~%<<%# ' + ''; }; programs.fzf = { diff --git a/hosts/common.nix b/hosts/common.nix index b890431..3817a62 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -35,7 +35,7 @@ "mv" = "mv -i"; "rm" = "rm -i"; "cp" = "cp -i"; - "ls" = "ls -A --color=auto"; + "ls" = "ls -F -G -A --color=auto"; "grep" = "grep --color=auto"; "file" = "file --no-dereference"; "tree" = "tree --dirsfirst"; -- cgit v1.2.3