From ccc08f7cd17df1b424bf1f2cc65bbfce5396599a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 14 Mar 2023 19:11:36 -0700 Subject: home/shell: a few more tweaks to zsh --- home/shell/aliases.nix | 1 + home/shell/zsh/default.nix | 2 ++ home/shell/zsh/prompt.zsh | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'home/shell') diff --git a/home/shell/aliases.nix b/home/shell/aliases.nix index ed15a23..8a44e42 100644 --- a/home/shell/aliases.nix +++ b/home/shell/aliases.nix @@ -1,6 +1,7 @@ { ll = "ls -l --color=auto"; lt = "ls -ltrh --color=auto"; + la = "ls -ltrha --color=auto"; pkgsearch = "nix search nixpkgs"; hms = "home-manager switch --flake ."; nr = "sudo nixos-rebuild switch --flake ."; 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 -- cgit 1.4.1