Skip to content

Commit

Permalink
feat install: zsh and zplug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vegard Sandengen committed Feb 8, 2021
1 parent ef8313a commit 17df266
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ def log(msg)
$stdout.puts "- #{msg}"
end

def install(bin_name, cmd)
`which #{bin_name} 2>/dev/null`
if $? != 0
log "installing #{bin_name}"
`#{cmd}`
end
end


if __FILE__ == $PROGRAM_NAME
$stdout.puts "Running dotconfigs system install"
Expand All @@ -37,6 +45,10 @@ if __FILE__ == $PROGRAM_NAME
log "installing vim-plug"
`curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim`

# Install zsh
install "zsh", "sudo dnf install zsh"
# Install a zsh plugin manager: zplug
install "zplug", "curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh"

# Check if rustup is installed
`which rustup 2>/dev/null`
Expand Down

0 comments on commit 17df266

Please sign in to comment.