diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-02-27 15:55:01 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-02-27 15:55:01 +0100 |
commit | 2b1e81af5435011175756a3d2a4957c6845add60 (patch) | |
tree | 161de97e2e2b6af511f26192b1ea18919697d39a /config/essentials/zsh | |
parent | 6011657bb01895a33751e4a38b371ca3e7381242 (diff) | |
parent | 46b968bbe1e3b308b50a4f16ea365a64a5bf6e3a (diff) |
Merge branch 'main' of autumn:dotfiles
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/.zshrc | 4 | ||||
-rw-r--r-- | config/essentials/zsh/prompt.zsh | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 8b94cfe..8978de7 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -21,11 +21,11 @@ try_source $XDG_CONFIG_HOME/zsh/comp.zsh try_source $XDG_CONFIG_HOME/shell/functions.sh try_source $XDG_CONFIG_HOME/shell/aliases.sh try_source $XDG_CONFIG_HOME/zsh/widgets.zsh -# try_source $XDG_CONFIG_HOME/zsh/prompt.zsh +try_source $XDG_CONFIG_HOME/zsh/prompt.zsh # try_source $XDG_CONFIG_HOME/zsh/plugins.zsh ### Programs -eval "$(starship init zsh)" +# eval "$(starship init zsh)" eval "$(zoxide init zsh)" ### Plugins 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%(?.. %?)' |