From 02e62543162210f9e707f292e06bd9c619b74136 Mon Sep 17 00:00:00 2001 From: joshrandall8478 <joshrandall8478@gmail.com> Date: Fri, 28 Feb 2025 12:36:14 -0500 Subject: [PATCH] modified bira --- .zshrc | 23 +++++++++++++++++++++-- bira.zsh-theme | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 bira.zsh-theme diff --git a/.zshrc b/.zshrc index 498b843..ef0f14c 100644 --- a/.zshrc +++ b/.zshrc @@ -22,7 +22,8 @@ ZSH=~/.oh-my-zsh/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) -ZSH_THEME=(bira) +#ZSH_THEME=(bira) + # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" @@ -180,7 +181,7 @@ eval "$(zoxide init zsh)" fastfetch -c ~/smallfetch.jsonc alias smallfetch="fastfetch -c ~/smallfetch.jsonc" #smallfetch -fortune -s -n 100 -o +fortune -s -n 100 export PATH=$PATH:/home/joshr/.spicetify @@ -192,3 +193,21 @@ alias baseddino="fortune -s -n 150 -o | cowsay -f stegosaurus" #eval "$(zellij setup --generate-auto-start zsh)" export MANPAGER='nvim +Man!' + +#source ~/headline.zsh-theme + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/usr/etc/profile.d/conda.sh" ]; then + . "/usr/etc/profile.d/conda.sh" + else + export PATH="/usr/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< +source ./bira.zsh-theme diff --git a/bira.zsh-theme b/bira.zsh-theme new file mode 100644 index 0000000..e5beb7f --- /dev/null +++ b/bira.zsh-theme @@ -0,0 +1,39 @@ +local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" +local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} " +local user_symbol='%(!.#.$)' +local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}" +conda_prompt_info="$(echo $CONDA_DEFAULT_ENV)" +local conda_prompt=' $(echo $CONDA_DEFAULT_ENV) ' + +local vcs_branch='$(git_prompt_info)$(hg_prompt_info)' +local rvm_ruby='$(ruby_prompt_info)' +local venv_prompt='$(virtualenv_prompt_info)' +if [[ "${plugins[@]}" =~ 'kube-ps1' ]]; then + local kube_prompt='$(kube_ps1)' +else + local kube_prompt='' +fi + +ZSH_THEME_RVM_PROMPT_OPTIONS="i v g" + +PROMPT="â•─${user_host}${current_dir}${conda_prompt}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt} +╰─%B${user_symbol}%b " +RPROMPT="%B${return_code}%b" + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹" +ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}â—%{$fg[yellow]%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[yellow]%}" + +ZSH_THEME_HG_PROMPT_PREFIX="$ZSH_THEME_GIT_PROMPT_PREFIX" +ZSH_THEME_HG_PROMPT_SUFFIX="$ZSH_THEME_GIT_PROMPT_SUFFIX" +ZSH_THEME_HG_PROMPT_DIRTY="$ZSH_THEME_GIT_PROMPT_DIRTY" +ZSH_THEME_HG_PROMPT_CLEAN="$ZSH_THEME_GIT_PROMPT_CLEAN" + +ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹" +ZSH_THEME_RUBY_PROMPT_SUFFIX="› %{$reset_color%}" + +ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹" +ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}" +ZSH_THEME_VIRTUALENV_PREFIX="$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX" +ZSH_THEME_VIRTUALENV_SUFFIX="$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX" -- GitLab