about summary refs log tree commit diff
path: root/home/shell/zsh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-14 19:11:36 -0700
committerFranck Cuny <franck@fcuny.net>2023-03-14 19:11:36 -0700
commitccc08f7cd17df1b424bf1f2cc65bbfce5396599a (patch)
tree865a684ed10011d059ed3d0633308c40ceb261b9 /home/shell/zsh
parenthosts/tahoe: set the consoleMode to "max" (diff)
downloadworld-ccc08f7cd17df1b424bf1f2cc65bbfce5396599a.tar.gz
home/shell: a few more tweaks to zsh
Diffstat (limited to 'home/shell/zsh')
-rw-r--r--home/shell/zsh/default.nix2
-rw-r--r--home/shell/zsh/prompt.zsh4
2 files changed, 4 insertions, 2 deletions
diff --git a/home/shell/zsh/default.nix b/home/shell/zsh/default.nix
index 408ba9b..6bf11ab 100644
--- a/home/shell/zsh/default.nix
+++ b/home/shell/zsh/default.nix
@@ -10,7 +10,9 @@ in
     programs.zsh = {
       enable = true;
       dotDir = ".config/zsh";
+
       enableCompletion = true;
+      enableAutosuggestions = true;
 
       history = {
         size = 500000;
diff --git a/home/shell/zsh/prompt.zsh b/home/shell/zsh/prompt.zsh
index fe93924..8a3efa9 100644
--- a/home/shell/zsh/prompt.zsh
+++ b/home/shell/zsh/prompt.zsh
@@ -3,11 +3,11 @@ setopt prompt_subst
 autoload -Uz vcs_info
 
 # display the name of the branch
-zstyle ':vcs_info:git*' formats "[%b]"
+zstyle ':vcs_info:git*' formats " [%b]"
 zstyle ':vcs_info:*' enable git
 
 precmd () { vcs_info }
-PROMPT='%m%f %F{yellow}$vcs_info_msg_0_ %F{green}%~%f %F{reset}'
+PROMPT='%m%f:%F{green}%~%f%F{yellow}$vcs_info_msg_0_ %F{reset}'
 
 # For tramp (emacs).
 if [ "$TERM" = "dumb" ]; then