From 542802cb029849a16dcb5a61a4c38d5c4d7805de Mon Sep 17 00:00:00 2001 From: Ashraf wan <73482535+Ashraf-wan@users.noreply.github.com> Date: Sat, 25 Feb 2023 17:26:25 +0800 Subject: [PATCH 1/2] Update linux-mac.sh Update the Jet Brain Mono font to the newest edition and do some improvement to the code --- installer/linux-mac.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/installer/linux-mac.sh b/installer/linux-mac.sh index 112a365..1eda0e3 100755 --- a/installer/linux-mac.sh +++ b/installer/linux-mac.sh @@ -55,7 +55,7 @@ pack_manager_install() { install_font() { echo "Downloading font" echo "Please wait" - wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip --output-document ~/Downloads/JetBrainsMono.zip + wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.2/JetBrainsMono.zip --output-document ~/Downloads/JetBrainsMono.zip unzip ~/Downloads/JetBrainsMono.zip -d ~/Downloads/JetBrainsMono if ![ $PACKAGE_MANAGER == "brew" ]; then mv ~/Downloads/JetBrainsMono/JetBrains Mono Regular Nerd Font Complete Mono.ttf /Library/Fonts/ @@ -67,15 +67,13 @@ install_font() { } echo "Installing dependencies" -if ! [ "$(cat /etc/os-release | grep "ID=debian")" == "ID=debian" ]; then - if [ $PACKAGE_MANAGER == "apt-get" ]; then +if [ $PACKAGE_MANAGER == "apt-get" ]; then sudo apt install software-properties-common sudo add-apt-repository ppa:neovim-ppa/stable -y sudo apt update pack_manager_install $PACKAGE_MANAGER "nvim" " " "neovim" "" "" "" "" else pack_manager_install $PACKAGE_MANAGER "nvim" "neovim" "neovim" "neovim" "neovim" "app-editors/neovim" "neovim" - fi fi pack_manager_install $PACKAGE_MANAGER "curl" "curl" "curl" "curl" "curl" "net-misc/curl" "curl" pack_manager_install $PACKAGE_MANAGER "git" "git" "git" "git" "git" "dev-vcs/git" "git" From 03445d99e78db1d7a2e0540bf9c4fec40df88349 Mon Sep 17 00:00:00 2001 From: Ashraf wan <73482535+Ashraf-wan@users.noreply.github.com> Date: Fri, 14 Jul 2023 21:20:50 -0700 Subject: [PATCH 2/2] Update linux-mac.sh Wait i did not finish this yet --- installer/linux-mac.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/linux-mac.sh b/installer/linux-mac.sh index 1eda0e3..b8657ba 100755 --- a/installer/linux-mac.sh +++ b/installer/linux-mac.sh @@ -55,7 +55,9 @@ pack_manager_install() { install_font() { echo "Downloading font" echo "Please wait" - wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.2/JetBrainsMono.zip --output-document ~/Downloads/JetBrainsMono.zip + LATEST="curl https://github.com/ryanoasis/nerd-fonts/releases/latest" + LATEST+="/JetBrainsMono.zip" + wget $LATEST JetBrainsMono.zip --output-document ~/Downloads/JetBrainsMono.zip unzip ~/Downloads/JetBrainsMono.zip -d ~/Downloads/JetBrainsMono if ![ $PACKAGE_MANAGER == "brew" ]; then mv ~/Downloads/JetBrainsMono/JetBrains Mono Regular Nerd Font Complete Mono.ttf /Library/Fonts/