aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/zsh/zshrc
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-07-10 01:29:48 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-07-10 01:29:48 +0530
commit085ff668ab45ac8d57c093e502b1175a86f2c14e (patch)
tree0fe7de3fdb29a9d0f7294e4af91d938fe5283533 /modules/tools/zsh/zshrc
parent70b590bf6b83dcb8f142451951a0f54ec3308283 (diff)
downloadhome-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.tar.gz
home-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.zip
Removed unnecessary packages.
Diffstat (limited to 'modules/tools/zsh/zshrc')
-rw-r--r--modules/tools/zsh/zshrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/tools/zsh/zshrc b/modules/tools/zsh/zshrc
new file mode 100644
index 0000000..3465071
--- /dev/null
+++ b/modules/tools/zsh/zshrc
@@ -0,0 +1,23 @@
+setopt PROMPT_SUBST
+
+autoload -U colors && colors
+
+autoload -Uz vcs_info
+precmd() { vcs_info }
+
+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{red}]${vcs_info_msg_0_}%(?..%F{red}┄[%F{white}Exit status: %F{yellow}%?%F{red}] )
+╰─>%f '
+
+bindkey "^[[3~" delete-char
+bindkey "^?" backward-delete-char