This commit is contained in:
Christian Nieves
2024-01-30 21:32:18 +00:00
parent 90033636e5
commit d4c557acf9
3 changed files with 5 additions and 21 deletions

View File

@ -30,7 +30,8 @@ zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-history-substring-search"
zplug "modules/prompt", from:prezto
zplug "modules/command-not-found", from:prezto
zplug "modules/completion", from:prezto
zplug "romkatv/powerlevel10k", as:theme, depth:1
# zplug "stedolan/jq", from:gh-r, as:command, rename-to:jq
@ -100,9 +101,6 @@ typeset -Ag color colour
prompt_google3() {
if [[ $PWD =~ '/google/src/cloud/[^/]+/(.+)/google3(.*)' ]]; then
# Use CitC client names as window titles in screen/tmux
print -n "\e]2;${match[1]}\a" >/dev/tty
GPROMPT=$(print -r -- "//${match[2]#/}")
else
GPROMPT=$(print -r -- "$PWD")
@ -112,9 +110,6 @@ prompt_google3() {
prompt_workspace() {
if [[ $PWD =~ '/google/src/cloud/[^/]+/(.+)/google3(.*)' ]]; then
# Use CitC client names as window titles in screen/tmux
print -n "\e]2;${match[1]}\a" >/dev/tty
GPROMPT=$(print -r -- "$match[1]")
# #fff is different than white i guess
p10k segment -b 63 -f '#fff' -t $GPROMPT