From 9bedffea2de0624c844bb44893555dff2517a6f2 Mon Sep 17 00:00:00 2001 From: Joty Date: Fri, 3 Aug 2018 15:26:58 +0930 Subject: [PATCH] Using nerdfonts --- .zshrc | 7 +++---- quickz.sh | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 10b0ad3..a49ac26 100644 --- a/.zshrc +++ b/.zshrc @@ -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 } diff --git a/quickz.sh b/quickz.sh index dcba009..107227d 100755 --- a/quickz.sh +++ b/quickz.sh @@ -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