Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Jul 28, 2024
1 parent d2fd3a1 commit 781aa9f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 25 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ install-yay() {

rm -r ~/.install/yay
mkdir -p ~/.install
sudo pacman -S --needed base-devel git
sudo pacman -Sy --needed base-devel git
git clone https://aur.archlinux.org/yay.git ~/.install/yay
cd ~/.install/yay && makepkg -si

Expand All @@ -71,6 +71,27 @@ install-yay() {
fi
}

install-nimf() {
if command -v nimf &> /dev/null
then
echo "'nimf' already exists. skipping installation.."
return 0
fi

rm -rf ~/.install/libhangul-git
git clone https://aur.archlinux.org/libhangul-git.git ~/.install/libhangul-git
cd libhangul-git && makepkg -si

rm -rf ~/.install/nimf
git clone https://github.com/hamonikr/nimf.git ~/.install/nimf
cd nimf && makepkg -si


if [ $? -ne 0 ]; then
error "Failed to install 'nimf'"
fi
}

# Determine OS
uname_out="$(uname -s)"
case "${uname_out}" in
Expand Down Expand Up @@ -103,6 +124,9 @@ elif [ "$machine" == "Linux" ]; then
chezmoi init github.com/xvzc/dotfiles || error "Filed to init chezmoi"
chezmoi apply -R || error "Failed to apply dotfiles"

install-yay
install-nimf

yay -S --needed --noconfirm - < ~/.local/share/chezmoi/setup/arch-packages.txt

else
Expand Down
3 changes: 1 addition & 2 deletions setup/arch-packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ xorg
xorg-server
xorg-xinit
betterlockscreen
nimf-git

base-devel
pyenv
Expand Down Expand Up @@ -43,5 +42,5 @@ thunar
ttf-font-awesome
ttf-jetbrains-mono-nerd
ttf-d2coding
noto-fonts
papirus-icon-theme
noto-font-cjk

0 comments on commit 781aa9f

Please sign in to comment.