Skip to content

Commit

Permalink
fix: Customize right prompt when Neovim is opened
Browse files Browse the repository at this point in the history
This is for terminal right prompt when Neovim is opened based on the
environment variable. If the `MYVIMRC` env is set, then the code for
adjusting rignt prompt indent is change.

Also fixed some typos.
  • Loading branch information
mdsanima committed Sep 6, 2024
1 parent d812a89 commit 8b63c5b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"

# Remind me to update when it's time and how often in days
zstyle ':omz:update' mode reminder
zstyle ':omz:update' frequency 7
zstyle ":omz:update" mode reminder
zstyle ":omz:update" frequency 7

# Enable command auto-correction
ENABLE_CORRECTION="true"
Expand All @@ -52,6 +52,11 @@ COMPLETION_WAITING_DOTS="true"
# Adjustment to the right side
ZLE_RPROMPT_INDENT=0

# When Neovim is opened, customize the right prompt
if [[ -n $MYVIMRC ]]; then
ZLE_RPROMPT_INDENT=2
fi

# Execution time stamp shown in the history command output
HIST_STAMPS="yyyy-mm-dd"

Expand Down

0 comments on commit 8b63c5b

Please sign in to comment.