Skip to content

Commit

Permalink
Support ubuntu installation
Browse files Browse the repository at this point in the history
  • Loading branch information
christianang committed Jun 15, 2021
1 parent f7820af commit 72c8a9b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions config/ubuntu/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
aria2
fasd
fzf
golang
htop
lsof
neovim
openssh-server
openssh-client
powerline
ripgrep
ruby
wget
xclip
zsh
27 changes: 25 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,32 @@ function update_nvim() {
nvim +PlugInstall +PlugUpdate +PlugUpgrade +qall --headless
}

function arch_install() {
echo "Installing on Arch..."
sudo pacman -Sy --noconfirm $(cat config/arch/packages)
install_aur_packages "config/arch/aur-packages"
}

function ubuntu_install() {
echo "Installing on Ubuntu..."
sudo apt update
sudo apt install -y $(cat config/ubuntu/packages)
}

function main() {
sudo pacman -Sy --noconfirm $(cat config/packages)
install_aur_packages "config/aur-packages"
local os_name="$(cat /etc/os-release | grep '^NAME' | cut -d'"' -f2)"
case "${os_name}" in
"Ubuntu")
ubuntu_install
;;
"Arch Linux")
arch_install
;;
*)
echo "Unsupported OS ${os_name}"
;;
esac

clone_or_pull_repos "config/repos"

"${HOME}/.gem/ruby/2.7.0/bin/homesick" clone https://github.com/christianang/dotfiles.git
Expand Down

0 comments on commit 72c8a9b

Please sign in to comment.