swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

commit 3378f43e8fb5025435f311e4f7c29a41d79345ac
parent 1b93421e77bddf55ad42f8536865378061f0b694
Author: awy <awy@awy.one>
Date:   Wed, 23 Jul 2025 16:50:41 +0300

zsh

Diffstat:
M.config/zsh/.zshrc | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -2,17 +2,21 @@ # Enable colors and change prompt: autoload -U colors && colors # Load colors -PS1="%{$fg[white]%}%n%{$fg[white]%}@%{$fg[white]%}%M %{$fg[yellow]%}%~ %{$reset_color%}$%b " +PS1='%{$fg[white]%}%n%{$fg[white]%}@%{$fg[white]%}%M %{$fg[yellow]%}%~%{$reset_color%}%b${vcs_info_msg_0_} $ ' setopt autocd # Automatically cd into typed directory. stty stop undef # Disable ctrl-s to freeze terminal. setopt interactive_comments - +setopt prompt_subst # History in cache directory: HISTSIZE=10000000 SAVEHIST=10000000 HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history" setopt inc_append_history +autoload -Uz vcs_info # enable vcs_info +precmd () { vcs_info } +zstyle ':vcs_info:*' formats ' %s(%F{blue}%b%f)' # git(main) + # Load aliases and shortcuts if existent. [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc"