Skip to content

Instantly share code, notes, and snippets.

@cbarraco
Created December 14, 2015 05:57
Show Gist options
  • Save cbarraco/da0ec61206fcdc7027e3 to your computer and use it in GitHub Desktop.
Save cbarraco/da0ec61206fcdc7027e3 to your computer and use it in GitHub Desktop.
Install a bunch of stuff I like for a fresh install of arch
#!/bin/sh
# install pacaur
cd
sudo pacman -S --noconfirm wget expac git
wget https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz
tar -xvf cower.tar.gz
cd cower
makepkg --skipinteg
sudo pacman -U cower-14-2-x86_64.pkg.tar.xz
cd
rm -rf cower
rm cower.tar.gz
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz
tar -xvf pacaur.tar.gz
cd pacaur
makepkg
sudo pacman -U pacaur-4.4.1-1-any.pkg.tar.xz
rm -rf pacaur
rm pacaur.tar.gz
cd
# install some basic stuff
pacaur -S --color always --noconfirm --noedit vim ranger dtrx google-chrome cmus ffmpeg mpv
# set up zsh
pacaur -S --color always --noedit --noconfirm zsh
chsh -s /bin/zsh
sudo chsh -s /bin/zsh
wget https://raw.githubusercontent.com/tarjoilija/zgen/master/zgen.zsh
zshrc="#!/usr/bin/zsh \n
# Lines configured by zsh-newuser-install \n
HISTFILE=~/.histfile \n
HISTSIZE=10000 \n
SAVEHIST=10000 \n
unsetopt beep \n
bindkey -e \n
# End of lines configured by zsh-newuser-install \n
# The following lines were added by compinstall \n
zstyle :compinstall filename \"${HOME}/.zshrc\" \n
autoload -Uz compinit \n
compinit \n
# End of lines added by compinstall \n
source \"${HOME}/zgen.zsh\" \n
if ! zgen saved; then \n
zgen oh-my-zsh \n
zgen load zsh-users/zsh-history-substring-search \n
zgen load zsh-users/zsh-syntax-highlighting \n
zgen load zsh-users/zsh-completions src \n
zgen save \n
fi \n
PS1=\"%/ \n
%# \" \n
source ~/.aliases"
echo $zshrc > ${HOME}/.zshrc
# install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment