Add autoinstall firacode font
This commit is contained in:
parent
6bb5381d8c
commit
eba4dabb91
2 changed files with 29 additions and 3 deletions
|
@ -23,6 +23,9 @@
|
||||||
;;
|
;;
|
||||||
;;(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 12 :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
|
||||||
|
|
29
install.sh
29
install.sh
|
@ -33,7 +33,7 @@ prepare_doom() {
|
||||||
prepare_custom_conf() {
|
prepare_custom_conf() {
|
||||||
if [ ! -d ~/.config/doom ]
|
if [ ! -d ~/.config/doom ]
|
||||||
then
|
then
|
||||||
git clone https://gitea.mrdev023.fr/florian.richer/emacs_conf ~/.config/doom
|
git clone git@gitea.mrdev023.fr:florian.richer/emacs_conf.git ~/.config/doom
|
||||||
check_cmd "INSTALL CUSTOM CONF"
|
check_cmd "INSTALL CUSTOM CONF"
|
||||||
else
|
else
|
||||||
git -C ~/.config/doom pull origin main
|
git -C ~/.config/doom pull origin main
|
||||||
|
@ -41,9 +41,31 @@ prepare_custom_conf() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepare_fira_code_nerd_font() {
|
||||||
|
if [ -d ~/.local/share/fonts/fira_code ]
|
||||||
|
then
|
||||||
|
rm -rf ~/.local/share/fonts/fira_code
|
||||||
|
check_cmd "REMOVE OLD FIRA CODE INSTALLATION"
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl -L -o ~/fira_code.tar.xz https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.tar.xz
|
||||||
|
check_cmd "DOWNLOAD FIRA CODE NERD FONT"
|
||||||
|
|
||||||
|
mkdir -p ~/.local/share/fonts/fira_code
|
||||||
|
check_cmd "PREPARE FIRA CODE NERD FONT INSTALLATION"
|
||||||
|
|
||||||
|
tar -xvf ~/fira_code.tar.xz -C ~/.local/share/fonts/fira_code
|
||||||
|
check_cmd "INSTALL FIRA CODE NERD FONT"
|
||||||
|
|
||||||
|
fc-cache -f -v
|
||||||
|
check_cmd "UPDATE FONT CACHE"
|
||||||
|
|
||||||
|
rm -rf ~/fira_code.tar.xz
|
||||||
|
check_cmd "REMOVE USELESS FIRA CODE NERD FONT FILES"
|
||||||
|
}
|
||||||
|
|
||||||
install_required_packages() {
|
install_required_packages() {
|
||||||
sudo dnf install ripgrep fish -y
|
sudo dnf install ripgrep fish fd-find git -y
|
||||||
}
|
}
|
||||||
|
|
||||||
sync_doom() {
|
sync_doom() {
|
||||||
|
@ -58,7 +80,8 @@ sync_doom() {
|
||||||
### PROGRAMME ###
|
### PROGRAMME ###
|
||||||
#################
|
#################
|
||||||
|
|
||||||
|
install_required_packages
|
||||||
|
prepare_fira_code_nerd_font
|
||||||
prepare_doom
|
prepare_doom
|
||||||
prepare_custom_conf
|
prepare_custom_conf
|
||||||
install_required_packages
|
|
||||||
sync_doom
|
sync_doom
|
||||||
|
|
Loading…
Reference in a new issue