text 电力线书呆子字体配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 电力线书呆子字体配置相关的知识,希望对你有一定的参考价值。
https://github.com/robbyrussell/oh-my-zsh/wiki/themes
https://github.com/bhilburn/powerlevel9k#prompt-customization
https://stackoverflow.com/questions/42271657/oh-my-zsh-showing-weird-character-on-terminal
1) Install zshell first
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
2) install powerlevel9k prompt
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
3) install nerd-fonts:
https://github.com/ryanoasis/nerd-fonts#option-4-homebrew-fonts
brew tap caskroom/fonts
brew cask install font-hack-nerd-font
4) change to Hack Regular NerdFonts
4.1) uncheck the ASCII checkbox
5) https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config
in .zshrc:
# goes on top of zshrc:
export TERM="xterm-256color"
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='nerdfont-complete'
# Prompts
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon ssh context dir virtualenv vcs)
else
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon user dir virtualenv vcs)
fi
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator custom_now_playing time)
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_SHORTEN_DELIMITER=..
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B4'
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B6'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
#POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="╭"
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="╰\uF460\uF460\uF460 "
# Colors
POWERLEVEL9K_VIRTUALENV_BACKGROUND=107
POWERLEVEL9K_VIRTUALENV_FOREGROUND='white'
POWERLEVEL9K_CUSTOM_NOW_PLAYING_BACKGROUND='blue'
POWERLEVEL9K_CUSTOM_NOW_PLAYING_FOREGROUND='black'
POWERLEVEL9K_OS_ICON_BACKGROUND='white'
POWERLEVEL9K_OS_ICON_FOREGROUND='black'
POWERLEVEL9K_TIME_BACKGROUND='white'
POWERLEVEL9K_TIME_FOREGROUND='black'
# VCS colors
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='cyan'
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='black'
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='white'
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='cyan'
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='black'
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='yellow'
plugins=(
osx
git
)
# aliases
alias editzsh="vim ~/.zshrc"
alias szsh="vim source ~/.zshrc"
alias cls="clear"
alias gs="git status"
alias x="exit"
alias ..="cd .."
alias downs="cd /Users/intern/Downloads;ls -l"
以上是关于text 电力线书呆子字体配置的主要内容,如果未能解决你的问题,请参考以下文章
优化运行基于matlab高比例风电电力系统储能运行及配置分析含Matlab源码 2273期
电力系统基于matlab YALMIP+CPLEX求解带储能的微电网优化调度问题含Matlab源码 2175期
电力系统基于matlab YALMIP+CPLEX求解带储能的微电网优化调度问题含Matlab源码 2175期
电力系统基于matlab考虑用户舒适度的冷热电多能互补综合能源系统优化调度含Matlab源码 2282期
电力系统基于matlab多时间尺度滚动优化的多能源微网双层调度模型含Matlab源码 2281期
优化调度基于matlab电力系统热电联产机组优化调度问题含Matlab源码 2206期