From ea14b176251737b6a2bc2d0bcdc2b2432d1cd6aa Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 12 Mar 2023 19:56:53 -0700 Subject: home/shell: aliases and cleaner prompt --- home/shell/aliases.nix | 1 + home/shell/zsh/prompt.zsh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'home/shell') diff --git a/home/shell/aliases.nix b/home/shell/aliases.nix index 1759b3c..ed15a23 100644 --- a/home/shell/aliases.nix +++ b/home/shell/aliases.nix @@ -4,4 +4,5 @@ pkgsearch = "nix search nixpkgs"; hms = "home-manager switch --flake ."; nr = "sudo nixos-rebuild switch --flake ."; + flup = "nix flake update --commit-lock-file"; } diff --git a/home/shell/zsh/prompt.zsh b/home/shell/zsh/prompt.zsh index 8473f72..fe93924 100644 --- a/home/shell/zsh/prompt.zsh +++ b/home/shell/zsh/prompt.zsh @@ -7,7 +7,7 @@ zstyle ':vcs_info:git*' formats "[%b]" zstyle ':vcs_info:*' enable git precmd () { vcs_info } -PROMPT="%K{cyan}%F{black}%n@%m%k%F{yellow}%~%f %F{green}${vcs_info_msg_0_}%f%% " +PROMPT='%m%f %F{yellow}$vcs_info_msg_0_ %F{green}%~%f %F{reset}' # For tramp (emacs). if [ "$TERM" = "dumb" ]; then -- cgit 1.4.1