Skip to content

Commit

Permalink
[Lazy] Zsh - Change theme
Browse files Browse the repository at this point in the history
We also add `kube-ps1` to lazy.kubernetes
  • Loading branch information
greedybro committed Oct 16, 2024
1 parent 24eb5ff commit b8e751b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lazy.ansible/.manala/etc/zsh/.zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export ZSH=/usr/local/share/oh-my-zsh
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
ZSH_THEME="strug"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
Expand Down Expand Up @@ -117,3 +117,8 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

## Prompt configuration

PROMPT="%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %1~ %{$reset_color%}${git_branch}
%{$fg[green]%}╰\$ %{$reset_color%}"
18 changes: 17 additions & 1 deletion lazy.kubernetes/.manala/etc/zsh/.zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export ZSH=/usr/local/share/oh-my-zsh
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
ZSH_THEME="strug"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
Expand Down Expand Up @@ -76,6 +76,7 @@ plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
kubectl
kube-ps1
{{- if .Vars.system.docker }}
docker
{{- end }}
Expand Down Expand Up @@ -144,3 +145,18 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

## Kube-ps1 configuration

KUBE_PS1_SEPARATOR=''
KUBE_PS1_CTX_COLOR=blue
KUBE_PS1_SYMBOL_COLOR=blue
KUBE_PS1_PREFIX=[
KUBE_PS1_PREFIX_COLOR=blue
KUBE_PS1_SUFFIX=]
KUBE_PS1_SUFFIX_COLOR=blue

## Prompt configuration

PROMPT='%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %1~ %{$reset_color%}%{$FG[008]%}•%{$reset_color%} $(kube_ps1)
%{$fg[green]%}╰\$ %{$reset_color%}'
7 changes: 6 additions & 1 deletion lazy.symfony/.manala/etc/zsh/.zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export ZSH=/usr/local/share/oh-my-zsh
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
ZSH_THEME="strug"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
Expand Down Expand Up @@ -107,3 +107,8 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

## Prompt configuration

PROMPT="%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %1~ %{$reset_color%}${git_branch}
%{$fg[green]%}╰\$ %{$reset_color%}"

0 comments on commit b8e751b

Please sign in to comment.