Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Customize right prompt when Neovim is opened #125

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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