Using nerdfonts

This commit is contained in:
Joty
2018-08-03 15:26:58 +09:30
parent b93011fe5c
commit 9bedffea2d
2 changed files with 9 additions and 4 deletions

7
.zshrc
View File

@@ -9,9 +9,8 @@ export TERM="xterm-256color"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# Source and use awesome-fonts
# source ~/.fonts/*.sh
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME="powerlevel9k/powerlevel9k"
@@ -158,4 +157,4 @@ cheat() {
# Matrix screen saver! will run if you have installed "cmatrix"
TMOUT=300
TRAPALRM() { if command -v cmatrix &> /dev/null; then cmatrix -s; fi }
TRAPALRM() { if command -v cmatrix &> /dev/null; then cmatrix -sb; fi }

View File

@@ -60,6 +60,12 @@ else
echo -e "\npowerline_fonts Installation Failed\n"
fi
wget -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf -P ~/.fonts/
wget -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/RobotoMono/Regular/complete/Roboto%20Mono%20Nerd%20Font%20Complete.ttf -P ~/.fonts/
fc-cache -fv ~/.fonts
# if git clone --depth=1 https://github.com/gabrielelana/awesome-terminal-fonts.git --depth=1 ~/.quickzsh/awesome_terminal_fonts; then :
# else
# cd ~/.quickzsh/awesome_terminal_fonts && git pull