Skip to content

Instantly share code, notes, and snippets.

@GirlBossRush
Created September 22, 2015 22:11
Show Gist options
  • Save GirlBossRush/4788ae928ded506ca154 to your computer and use it in GitHub Desktop.
Save GirlBossRush/4788ae928ded506ca154 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install zsh htop zip unzip vim cowsay tmux wget curl git build-essential man lsof cmake tig imagemagick python-software-properties
sudo apt-get -y install libssl-dev postgresql postgresql-server-dev-all postgresql-contrib libpq-dev libreadline6-dev libxml2 libxml2-dev libxslt1-dev
sudo apt-get -y install libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
cd /home/connor
chsh -s /usr/bin/zsh connor
su connor -c 'curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh'
# SSH
su connor -c 'yes | ssh-keygen -t rsa'
sudo -u connor ssh-keygen -t rsa -C $HOST -f id_rsa -P ''
# Git
git config --global user.name "Connor Peshek"
git config --global user.email "YOUR EMAIL"
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch
git config --global help.autocorrect 10
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config --global core.editor /usr/bin/vim
git config --global color.ui auto
git config merge.ff false
# Vim
echo '4' | sudo update-alternatives --config editor
# Postgres
sudo -u postgres createuser --superuser connor
sudo -u postgres createdb connor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment