From 46b968bbe1e3b308b50a4f16ea365a64a5bf6e3a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 24 Feb 2025 12:56:30 +0100 Subject: checkpoint --- config/essentials/zsh/prompt.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config/essentials/zsh/prompt.zsh') diff --git a/config/essentials/zsh/prompt.zsh b/config/essentials/zsh/prompt.zsh index bf272b8..1fa83d0 100644 --- a/config/essentials/zsh/prompt.zsh +++ b/config/essentials/zsh/prompt.zsh @@ -1,6 +1,4 @@ -# prompt -# PS1=' %K{16}%B%(#.%F{1}.%F{13})%n%b%f@%B%F{6}%m%b%f %3~%k ' -# RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(parse_git_branch)%f%(?.. %?)' +#!/bin/zsh setopt prompt_subst parse_git_remote() { @@ -14,3 +12,6 @@ parse_git_branch() { parse_git_status() { git status --short 2> /dev/null | head -n1 | awk '{print $1 " "}' } + +PS1=' %3~ ' +RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(parse_git_branch)%f%(?.. %?)' -- cgit v1.2.3