diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-21 13:32:02 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-21 13:32:02 +0100 |
commit | 6ceb650cea986d94d7e81c5f685ca0ed46f87bb1 (patch) | |
tree | 128199afe83f7c2c37ead6d289b4fdb4fd5bc366 /.config | |
parent | 0effaa91f4eb5676533db5d0238c7f3ad209d1ca (diff) |
update zshrc
Diffstat (limited to '.config')
-rw-r--r-- | .config/zsh/prompt | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/zsh/prompt b/.config/zsh/prompt deleted file mode 100644 index db66644..0000000 --- a/.config/zsh/prompt +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/zsh -unset PROMPT -setopt PROMPT_SUBST - -prompt_segment() { - content="$1" - [ -z "$content" ] && return - echo "%{\e[90m%}${content}%{\e[30m%} -> %{\e[0m%}" -} - -prompt_mod_git_info() { - git rev-parse --is-inside-work-tree 1> /dev/null 2> /dev/null || return - prompt_segment "git $(git rev-parse --abbrev-ref HEAD)" -} - -# only display hostname in prompt if connected over SSH -[ -n "$SSH_CLIENT" ] && PROMPT+="$(prompt_segment '%m')" -# working directory -PROMPT+="$(prompt_segment '%c')" -# git info (if in repo) -PROMPT+="\$(prompt_mod_git_info)" - |