Skip to content

Commit

Permalink
zsh theme: modify powerline-go to use new kube regex
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Sep 10, 2021
1 parent d597f99 commit 14b2368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot_zsh.d/joemiller.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ precmd() {
###
if command -v "powerline-go" >/dev/null; then
function powerline_precmd() {
PS1="$(powerline-go -error $? -shell zsh -modules host,cwd,aws,docker,kube,git,venv,root -colorize-hostname -cwd-max-depth 4 -shorten-gke-names -theme ~/.powerline-go/joe.json)"
PS1="$(powerline-go -error $? -shell zsh -modules host,cwd,aws,docker,kube,git,venv,root -colorize-hostname -cwd-max-depth 4 -shorten-gke-names -shorten-kube-names-regex-match 'planetscale-\d+-\w+-(.*)$' -theme ~/.powerline-go/joe.json)"
}

function _install_powerline_precmd() {
Expand Down

0 comments on commit 14b2368

Please sign in to comment.