Fix OBSD zsh theme
temporarily use legacy 'marc-theme'
This commit is contained in:
@@ -6,6 +6,8 @@ My personal dotfiles/ configurations, managed with the 'dotdrop' submodule
|
|||||||
|
|
||||||
Currently using:
|
Currently using:
|
||||||
+ `OneDark` Colortheme with `lightline` Statusbar for vim
|
+ `OneDark` Colortheme with `lightline` Statusbar for vim
|
||||||
+ `Inconsolata` Font from google for Xterm
|
+ `Inconsolata` Powerline Patched Font for Xterm
|
||||||
|
+ A modded `Agnoster` ZSH-Theme
|
||||||
|
|
||||||
|
Outdated picture:
|
||||||

|

|
||||||
|
|||||||
10
config.yaml
10
config.yaml
@@ -81,14 +81,20 @@ profiles:
|
|||||||
- font
|
- font
|
||||||
- git
|
- git
|
||||||
- gdb
|
- gdb
|
||||||
dev-bash:
|
dev-linux-bash:
|
||||||
include:
|
include:
|
||||||
- bash
|
- bash
|
||||||
- vim
|
- vim
|
||||||
dev-zsh:
|
dev-obsd-bash:
|
||||||
|
- bash
|
||||||
|
- vim
|
||||||
|
dev-linux-zsh:
|
||||||
include:
|
include:
|
||||||
- zsh
|
- zsh
|
||||||
- vim
|
- vim
|
||||||
|
dev-obsd-zsh:
|
||||||
|
- zsh
|
||||||
|
- vim
|
||||||
|
|
||||||
# Packages to be used above
|
# Packages to be used above
|
||||||
bash:
|
bash:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ prompt_setup_pygmalion(){
|
|||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
base_prompt='%{$fg[green]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[yellow]%}%m%{$reset_color%}%{$fg[red]%}:%{$reset_color%}%{$fg[cyan]%}%1~%{$reset_color%}'
|
base_prompt='%{$fg[green]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[yellow]%}%m%{$reset_color%}%{$fg[red]%}:%{$reset_color%}%{$fg[cyan]%}%1~%{$reset_color%}'
|
||||||
post_prompt='%{$fg[green]%} 水 %{$reset_color%}'
|
post_prompt=' '
|
||||||
|
|
||||||
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
|
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
|
||||||
post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")
|
post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")
|
||||||
@@ -23,14 +23,14 @@ prompt_pygmalion_precmd(){
|
|||||||
local prompt_length=${#exp_nocolor}
|
local prompt_length=${#exp_nocolor}
|
||||||
|
|
||||||
local nl=""
|
local nl=""
|
||||||
post_prompt='%{$fg[green]%} 水 %{$reset_color%}'
|
post_prompt=' '
|
||||||
|
|
||||||
|
|
||||||
if [ ${#gitinfo} -ne 0 ] ; then
|
if [ ${#gitinfo} -ne 0 ] ; then
|
||||||
gitinfo=${gitinfo[1,-2]}
|
gitinfo=${gitinfo[1,-2]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $prompt_length -gt 50 ]]; then
|
if [[ $prompt_length -gt 40 ]]; then
|
||||||
nl=$'\n%{\r%}';
|
nl=$'\n%{\r%}';
|
||||||
post_prompt='%{$fg[green]%}~> %{$reset_color%}';
|
post_prompt='%{$fg[green]%}~> %{$reset_color%}';
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
export ZSH="/home/$USER/.oh-my-zsh"
|
export ZSH="/home/$USER/.oh-my-zsh"
|
||||||
|
|
||||||
ZSH_THEME="agnoster-plus"
|
ZSH_THEME="agnoster-plus"
|
||||||
|
{%@@ if profile == "dev-obsd-zsh" @@%}
|
||||||
|
ZSH_THEME="marc-theme"
|
||||||
|
{%@@ endif @@%}
|
||||||
|
|
||||||
DISABLE_AUTO_UPDATE="true"
|
DISABLE_AUTO_UPDATE="true"
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user