From e85b70294fd81d3d16232ac93373550ffcb69ebb Mon Sep 17 00:00:00 2001 From: ryukamish Date: Sun, 19 Jul 2026 19:44:19 +0530 Subject: optional other zsh prompts --- .zshrc | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index d5703e5..1d550af 100644 --- a/.zshrc +++ b/.zshrc @@ -18,6 +18,7 @@ export XDG_PICTURES_DIR="${HOME}/pictures" export XDG_VIDEOS_DIR="${HOME}/videos" export PATH="$PATH:$HOME/.cargo/bin" +export PATH="$PATH:$HOME/go/bin" export PATH="$PATH:$HOME/.local/bin" export EDITOR="nvim" @@ -137,8 +138,8 @@ function droid(){ ZSH_CUSTOM="$HOME/.config/zsh/plugins" plugins=( - zsh-autosuggestions - zsh-syntax-highlighting + # zsh-autosuggestions + # zsh-syntax-highlighting ) for plugin in $plugins; do @@ -183,6 +184,7 @@ alias ls='ls --color=auto --group-directories-first' alias ll='ls -lh --color=auto --group-directories-first' alias la='ls -lah --color=auto --group-directories-first' alias grep='grep --color=auto' +alias nv='nvim' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' @@ -191,21 +193,50 @@ alias ....='cd ../../..' # ┃ Prompt with git status ┃ # ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ +# ========================= Single line prompt ====================== + # Load version control info -autoload -Uz vcs_info +# autoload -Uz vcs_info # Load colors -autoload -Uz colors && colors +# autoload -Uz colors && colors # Run vcs_info before each prompt -precmd_functions+=(vcs_info) +# precmd_functions+=(vcs_info) # Enable prompt substitution -setopt prompt_subst +# setopt prompt_subst # Configure the format for git -zstyle ':vcs_info:git:*' formats ' (%b)' -zstyle ':vcs_info:git:*' enable git +# zstyle ':vcs_info:git:*' formats ' (%b)' +# zstyle ':vcs_info:git:*' enable git # Set the PROMPT variable to include the vcs_info_msg_0_ variable -PROMPT='%F{#bb9af7}%~%f%F{#7dcfff}${vcs_info_msg_0_}%f %# ' +# PROMPT='%F{#bb9af7}%~%f%F{#7dcfff}${vcs_info_msg_0_}%f %# ' + +# ===================== Double line prompt ====================== + +# autoload -Uz vcs_info +# setopt PROMPT_SUBST + +# palette +# CORAL='%F{#ff7645}' +# LAVENDER='%F{#b8a5e6}' +# VOID='%F{#6b6b70}' +# RED='%F{#e05a5a}' +# RESET='%f' + +# zstyle ':vcs_info:git:*' formats "${VOID}on ${LAVENDER}%b${VOID}%u%c${RESET}" +# zstyle ':vcs_info:git:*' actionformats "${VOID}on ${LAVENDER}%b${VOID}|%a${RESET}" +# zstyle ':vcs_info:*' check-for-changes true +# zstyle ':vcs_info:*' unstagedstr ' *' +# zstyle ':vcs_info:*' stagedstr ' +' + +# precmd() { vcs_info } + +# PROMPT=' +# ${VOID}╭─${CORAL}%n${VOID}@%m ${LAVENDER}%~${RESET} ${vcs_info_msg_0_} +# ${VOID}╰─%(?.${CORAL}.${RED})❯${RESET} ' + +# Starship prompt +eval "$(starship init zsh)" -- cgit v1.3