diff options
Diffstat (limited to 'modules/shell')
| -rw-r--r-- | modules/shell/bash/default.nix | 6 | ||||
| -rw-r--r-- | modules/shell/zsh/zshrc | 15 |
2 files changed, 13 insertions, 8 deletions
diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix index 2e65d60..a82f924 100644 --- a/modules/shell/bash/default.nix +++ b/modules/shell/bash/default.nix @@ -19,6 +19,10 @@ programs.bash.enable = true; programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history"; programs.bash.shellAliases = config.shell.alias; - home.file."${config.xdg.cacheHome}/bash/histroy".text = ""; # Create the cache directory and histroy file + + home.activation.createBashCacheDirectory + = lib.hm.dag.entryAfter + [ "writeBoundary" ] + "mkdir -p ${config.xdg.cacheHome}/bash"; }; } diff --git a/modules/shell/zsh/zshrc b/modules/shell/zsh/zshrc index 528bf68..b1872c8 100644 --- a/modules/shell/zsh/zshrc +++ b/modules/shell/zsh/zshrc @@ -5,15 +5,16 @@ autoload -U colors && colors autoload -Uz vcs_info precmd() { vcs_info } -zstyle ':vcs_info:git:*' formats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]' -zstyle ':vcs_info:git:*' actionformats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]' +zstyle ':vcs_info:git:*' formats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]' +zstyle ':vcs_info:git:*' actionformats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]' zstyle ':vcs_info:*+set-message:*' hooks git-untracked git-dirty zstyle ':vcs_info:git:*' check-for-changes true -zstyle ':vcs_info:git:*' stagedstr '%F{green}✓%f' -zstyle ':vcs_info:git:*' unstagedstr '%F{red}✗%f' -zstyle ':vcs_info:git:*' aheadstr '%F{blue}⬆%f' -zstyle ':vcs_info:git:*' behindstr '%F{yellow}⬇%f' -PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}] %F{magenta}%~%f${vcs_info_msg_0_}%F{red} +zstyle ':vcs_info:git:*' stagedstr ' %F{green}✓%f' +zstyle ':vcs_info:git:*' unstagedstr ' %F{red}✗%f' +zstyle ':vcs_info:git:*' aheadstr ' %F{blue}⬆%f' +zstyle ':vcs_info:git:*' behindstr ' %F{yellow}⬇%f' + +PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}]┄[%F{magenta}%~%F{red}]${vcs_info_msg_0_}%(?..%F{red}┄[%F{white}Exit status: %F{yellow}%?%F{red}] ) ╰─>%f ' |
