Remove useless font install
This commit is contained in:
parent
80407e66eb
commit
fb51d1655e
2 changed files with 0 additions and 31 deletions
|
@ -23,7 +23,6 @@
|
||||||
;;
|
;;
|
||||||
;; (setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
|
;; (setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
|
||||||
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
|
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
|
||||||
;; (setq doom-font (font-spec :family "FiraCode Nerd Font" :size 14 :weight 'semi-light))
|
|
||||||
;;
|
;;
|
||||||
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||||
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
||||||
|
|
30
install.sh
30
install.sh
|
@ -41,35 +41,6 @@ prepare_custom_conf() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_nerd_font() {
|
|
||||||
if [[ $(fc-list | grep "FiraCode") ]]
|
|
||||||
then
|
|
||||||
skip_msg "INSTALL FONT"
|
|
||||||
else
|
|
||||||
if [ ! -f "$(xdg-user-dir DOWNLOAD)/FiraCode.zip" ]
|
|
||||||
then
|
|
||||||
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/FiraCode.zip -O "$(xdg-user-dir DOWNLOAD)/FiraCode.zip"
|
|
||||||
check_cmd "DOWNLOAD FONTS IN DOWNLOAD FOLDER"
|
|
||||||
else
|
|
||||||
skip_msg "DOWNLOAD FONTS IN DOWNLOAD FOLDER"
|
|
||||||
fi
|
|
||||||
if [ ! -d "$(xdg-user-dir DOWNLOAD)/FiraCode" ]
|
|
||||||
then
|
|
||||||
unzip "$(xdg-user-dir DOWNLOAD)/FiraCode.zip" -d "$(xdg-user-dir DOWNLOAD)/FiraCode"
|
|
||||||
check_cmd "UNZIP FONTS IN DOWNLOAD FOLDER"
|
|
||||||
else
|
|
||||||
skip_msg "UNZIP FONTS IN DOWNLOAD FOLDER"
|
|
||||||
fi
|
|
||||||
mkdir -p ~/.local/share/fonts
|
|
||||||
check_cmd "PREPARE FONTS FOLDER"
|
|
||||||
cp $(xdg-user-dir DOWNLOAD)/FiraCode/* ~/.local/share/fonts/
|
|
||||||
check_cmd "INSTALL FONTS"
|
|
||||||
fc-cache -fv
|
|
||||||
check_cmd "FONT RELOAD CACHE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/FiraCode.zip
|
|
||||||
}
|
|
||||||
|
|
||||||
install_required_packages() {
|
install_required_packages() {
|
||||||
sudo dnf install ripgrep fish -y
|
sudo dnf install ripgrep fish -y
|
||||||
|
@ -89,6 +60,5 @@ sync_doom() {
|
||||||
|
|
||||||
prepare_doom
|
prepare_doom
|
||||||
prepare_custom_conf
|
prepare_custom_conf
|
||||||
install_nerd_font
|
|
||||||
install_required_packages
|
install_required_packages
|
||||||
sync_doom
|
sync_doom
|
||||||
|
|
Loading…
Reference in a new issue