Use oh-my-posh for theme, cleanup

This commit is contained in:
Gene Liverman 2023-08-23 01:28:00 -04:00
parent 835cf4d236
commit 1cf47f814d

View file

@ -4,15 +4,9 @@ export ZSH=~/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random" # Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded. # it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
if [[ `uname` == 'Linux' ]]; then #ZSH_THEME="robbyrussell"
ZSH_THEME="beanbag"
#ZSH_THEME="af-magic" # use oh-my-posh for theme
else
ZSH_THEME="beanbag"
#ZSH_THEME="robbyrussell"
#ZSH_THEME="pygmalion"
#ZSH_THEME="muse"
fi
# Get Homebrew into the path early so that plugins and such can use # Get Homebrew into the path early so that plugins and such can use
# programs installed by it # programs installed by it
@ -84,7 +78,7 @@ ZSH_CUSTOM=~/repos/customized-oh-my-zsh
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=(brew bundler gem git github history kube-ps1 kubectl macos pip python terraform vagrant vscode zsh-autosuggestions) plugins=(bundler gem git github history kubectl macos pip terraform vagrant vscode zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
@ -181,16 +175,6 @@ if [[ `uname` != 'Linux' ]]; then
} }
fi fi
# )ofni_tnuocca_swa($ is $(aws_account_info) backwards
#PROMPT=`echo $PROMPT | rev | sed 's/ / )ofni_tnuocca_swa($ /'| rev`
function get_cluster_short() {
echo "$1" |rev |cut -d _ -f1 |rev
}
KUBE_PS1_CLUSTER_FUNCTION=get_cluster_short
KUBE_PS1_COLOR_CONTEXT="%{$fg[yellow]%}"
KUBE_PS1_ENABLED=false
export EDITOR='vim' export EDITOR='vim'
export GOPATH=$HOME/go export GOPATH=$HOME/go
@ -220,9 +204,6 @@ if [[ `uname` == 'Darwin' ]]; then
GEMBIN="$(gem environment gemdir)/bin" GEMBIN="$(gem environment gemdir)/bin"
export PATH=$PATH:$GEMBIN export PATH=$PATH:$GEMBIN
# added by travis gem
# [ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh || echo 'The travis gem is missing. After installing it run "echo y|travis" to create ~/.travis'
# added to make pipx work # added to make pipx work
[ -d /Users/gene/.local/bin ] && export PATH=$PATH:/Users/gene/.local/bin [ -d /Users/gene/.local/bin ] && export PATH=$PATH:/Users/gene/.local/bin
@ -284,7 +265,5 @@ if type floaty &>/dev/null; then
source $(floaty completion --shell zsh) source $(floaty completion --shell zsh)
fi fi
# default kube-ps1 to off eval "$(oh-my-posh init zsh --config ~/repos/my-oh-my-posh-themes/beanbag.omp.json)"
kubeoff