Skip to content

Commit 256003d

Browse files
committed
feat: added separator
1 parent a2def68 commit 256003d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

configs/zsh/.zshrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ precmd() {
8989
local git="$(git_prompt)"
9090
local venv="$(venv_prompt)"
9191
local path="$(path_prompt)"
92-
PROMPT="
93-
${NEON_CYAN}${ICON}${RESET} ${distro} ${NEON_YELLOW}${time}${RESET} ${NEON_PURPLE}${user}${RESET} ${path} ${git} ${venv}
92+
PROMPT="${NEON_CYAN}${ICON}${RESET} ${distro} ${NEON_YELLOW}${time}${RESET} ${NEON_PURPLE}${user}${RESET} ${path} ${git} ${venv}
9493
${NEON_CYAN}󱞩${RESET} "
9594
}
9695

@@ -198,6 +197,13 @@ weekly_system_update() {
198197

199198
add-zsh-hook precmd weekly_system_update
200199

200+
draw_separator() {
201+
local cols=${COLUMNS:-120}
202+
local line="${(l:${cols}:::)}"
203+
print -P "%F{240}${line}%f"
204+
}
205+
206+
add-zsh-hook precmd draw_separator
201207
export NVM_DIR="$HOME/.nvm"
202208
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
203209
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"

0 commit comments

Comments
 (0)