about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-12 19:56:53 -0700
committerFranck Cuny <franck@fcuny.net>2023-03-12 19:56:53 -0700
commitea14b176251737b6a2bc2d0bcdc2b2432d1cd6aa (patch)
treef573477a6199af61c4deade58394852595241c33
parenthome/yubikey: install (and run) yubikey-touch-detector (diff)
downloadworld-ea14b176251737b6a2bc2d0bcdc2b2432d1cd6aa.tar.gz
home/shell: aliases and cleaner prompt
Diffstat (limited to '')
-rw-r--r--home/shell/aliases.nix1
-rw-r--r--home/shell/zsh/prompt.zsh2
2 files changed, 2 insertions, 1 deletions
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