-
Notifications
You must be signed in to change notification settings - Fork 38
Customize
BlaCk_Void edited this page Apr 21, 2020
·
16 revisions
Table of Contents
-
BlaCk-Void.zshenv
: Add to path some things(Application
,bin
,.local.bin
..etc) that might be in your home directory(~/
) and the location of package manager's(cargo
,linux brew
,snap
, ..etc) bin. -
BlaCk-Void.zshrc
: Main Setting File. -
autoload/*
: Various functions, set to lazyload(autoload) immediately after calling BlaCk-Void.zshrc.
See Features for more information on the functions. -
~/.ztheme
orBlaCk-Void.ztheme
: Customable theme setting file, load before normal plugins load. -
lib/*
: Loaded at the end ofBlaCk-Void.zshrc
. -
complition/*
: Add fromlib/completion
to$fpath
. -
BlaCk-Void.zlogin
: Optimization related settings, such as byte compilation in the background.
See here.
Theme consists of Color Mode
, Icon Mode
, and Theme Mode
.
Color Definition and Icon Definition execute immediately, and Apply to Theme executes when Theme Definition
.
Plugin
- Create file to your home.
- Restrictions: Work only in
~/.zplugins
touch ~/.zplugins
Theme
- Copy file to your home.
- Restrictions: Work only in
~/.ztheme
cp $BVZSH/BlaCk-Void.ztheme ~/.ztheme
- Apply Setting
Restart terminal or Start new session - FAQ: Can not change during use?
This isn’t supported by powerlevel10k.
- Install zsh plugins
- Theme Mode, Color Mode, Icon Mode
Write along the Zplugin WIKI.
- Things that will help.
- awesome-zsh-plugins
- BVZSH Setting
- zplugin-configs
-
THEME MODE
list:auto
,powerline
,simple
,powerline-single
,simple-single
-
auto
Default ispowerline
.
When not support xterm or 256 color,simple
theme Activate. - Powerline
- Simple
- Powerline - Single
- Simple - Single
- Things that will help.
- Compatible with Powerlevel9k
Powerlevel9k's documents: README, show off your config, Stylizing Your Prompt, User Segments.
Powerlevel10k's configs: configs, purepower. - BlaCk-Void-Zsh's Ztheme Doc.
- Design
-
COLOR MODE
list:auto
,flex
,fixed
-
auto
Default isfixed
.
When not support xterm or 256 color,flex
color Activate. -
flex
Use the default color of the terminal scheme. -
fixed
Use X-Term's color to show a constant color (in most cases) - Compare
SCHEME /COLOR MODE | Flex | Fixed |
---|---|---|
Breeze | ||
Oxygen | ||
Linux | ||
Black&Green |
- Things that will help.
- Arch Wiki: Zsh-Colors another Xterm Colors.
-
Useful
command
list -
for code ({000..255}) print -P -- "$code: %F{$code}This is how your text would look like%f"
: Show xterm 256 colors. -
getColorCode foreground
: How colors are applied to the foreground.
getColorCode background
: How colors are applied to the background. -
POWERLEVEL9K_{ELEMENT}_FOREGROUND=COLOR
: Apply color to theme's forground.
POWERLEVEL9K_{ELEMENT}_BACKGROUND=COLOR
: Apply color to theme's background.
-
ICON MODE
list:auto
,nerd
,powerline
-
auto
auto: Default isnerd
.
When ssh or root,powerline
icon Activate. -
nerd font
You can download patched fonts from yanoasis/nerd-fonts.
Installer recommend font is Hack Nerd Font. - powerline font You can download patched fonts from powerline/fonts
- Things that will help.
- Nerd Font, Powerline Extra Symbols, Unicode Table
- Useful
command
list -
get_icon_names
: Show applied icons. -
POWERLEVEL9K_{ICONNAME}_ICON=ICON
: Apply icon to theme.