This commit is contained in:
Christian Nieves
2022-08-09 16:04:39 -05:00
parent 96b09edbe4
commit 6050d97508
3 changed files with 20 additions and 21 deletions

View File

@ -125,21 +125,3 @@ to_mac(){
scp $1 cnieves-macbookpro.roam.internal:~/Downloads
echo "Saved $1 to downloads"
}
alias acid=/google/bin/releases/mobile-devx-platform/acid/acid
alias apido='/google/data/ro/teams/oneplatform/apido'
alias bugs=/google/data/rw/users/mk/mkannan/www/bin/bugs
alias cider='/google/src/head/depot/google3/experimental/cider_here/cider_here.sh'
alias crow=/google/bin/releases/mobile-devx-platform/crow/crow.par
alias er=/google/data/ro/users/ho/hooper/er
alias fixjs=/google/src/files/head/depot/google3/third_party/java_src/jscomp/java/com/google/javascript/jscomp/lint/fixjs.sh
alias fortune=/google/data/ro/users/di/diamondm/engfortunes/fortune.sh
alias hgcdg4='cd $(g4 g4d $(hg exportedcl))'
alias jadep=/google/data/ro/teams/jade/jadep
alias replace_string=/google/src/head/depot/google3/devtools/scripts/replace_string
alias safergcp=/google/bin/releases/safer-gcp/tools/safergcp
alias add_deps_to_usages='/google/src/head/depot/google3/apps/framework/tools/add_deps_to_usages.sh'
alias plxutil='/google/data/ro/teams/plx/plxutil'
export HGSHORT_CMDS="ls cat head tail mv cp rm chmod g4 diff merge patch meld trim less more"
alias hgd='source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd.sh'

View File

@ -57,4 +57,21 @@ source ~/fzf-at-google.zsh
source ~/g3path.zsh
source /etc/bash_completion.d/hgd
alias acid=/google/bin/releases/mobile-devx-platform/acid/acid
alias apido='/google/data/ro/teams/oneplatform/apido'
alias bugs=/google/data/rw/users/mk/mkannan/www/bin/bugs
alias cider='/google/src/head/depot/google3/experimental/cider_here/cider_here.sh'
alias crow=/google/bin/releases/mobile-devx-platform/crow/crow.par
alias er=/google/data/ro/users/ho/hooper/er
alias fixjs=/google/src/files/head/depot/google3/third_party/java_src/jscomp/java/com/google/javascript/jscomp/lint/fixjs.sh
alias fortune=/google/data/ro/users/di/diamondm/engfortunes/fortune.sh
alias hgcdg4='cd $(g4 g4d $(hg exportedcl))'
alias jadep=/google/data/ro/teams/jade/jadep
alias replace_string=/google/src/head/depot/google3/devtools/scripts/replace_string
alias safergcp=/google/bin/releases/safer-gcp/tools/safergcp
alias add_deps_to_usages='/google/src/head/depot/google3/apps/framework/tools/add_deps_to_usages.sh'
alias plxutil='/google/data/ro/teams/plx/plxutil'
export HGSHORT_CMDS="cat head tail mv cp rm chmod g4 diff merge patch meld trim less more"
alias hgd='source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd.sh'
export ACID_STARTUP_SCRIPT_PATH=~/acid_startup.sh

View File

@ -176,11 +176,11 @@ done
prompt_google3() {
if [[ $PWD =~ '/google/src/cloud/[^/]+/(.+)/google3(.*)' ]]; then
GPROMPT=$(print -r -- "%F{white}//${match[2]#/}")
GPROMPT=$(print -r -- "//${match[2]#/}")
else
GPROMPT=$(print -r -- "%F{white}$PWD")
GPROMPT=$(print -r -- "$PWD")
fi
p10k segment -b 147 -t $GPROMPT
p10k segment -b '#afafff' -f '#fff' -t $GPROMPT
}
prompt_workspace() {