uh
This commit is contained in:
@ -21,17 +21,6 @@ function gcert() {
|
||||
source /google/bin/releases/knock/knock.sh
|
||||
}
|
||||
|
||||
function tmux_title() {
|
||||
if [[ $PWD =~ /google/src/cloud/[^/]+/([^/]+)/.* ]]; then
|
||||
tmx2 rename-window "${match[1]}"
|
||||
else
|
||||
tmx2 rename-window "$(basename "`pwd`")"
|
||||
fi
|
||||
}
|
||||
if [[ ! -z "$TMUX" ]]; then
|
||||
precmd_functions+=(tmux_title)
|
||||
fi
|
||||
|
||||
|
||||
FORTUNES=/google/data/ro/users/di/diamondm/engfortunes/fortune.sh
|
||||
if [ -f "$FORTUNES" ]; then
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user