Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Last active August 8, 2016 18:20
Show Gist options
  • Save Sacristan/4f1325e3a28aadf08440 to your computer and use it in GitHub Desktop.
Save Sacristan/4f1325e3a28aadf08440 to your computer and use it in GitHub Desktop.
Dev env setup
INSTRUCTIONS:
sudo apt-get install vim git curl
  1. Install fish shell

Ubuntu:

sudo apt-get install fish

Mac:

brew install fish
  1. change default shell to fish shell
sudo rvim /etc/shells 
add /usr/local/bin/fish
sudo chsh -s /usr/local/bin/fish
  1. install oh-my-fish setting management framework
curl -L http://get.oh-my.fish | fish
  1. Install Ruby Version Manager with Ruby
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --ruby

Set up environment

sudo apt-get install nodejs libpq-dev postgresql postgresql-contrib curl fish vim git xclip

Configure postgres

sudo -u postgres createuser sacristan

sudo su postgres -c psql
ALTER USER sacristan WITH SUPERUSER;
\password sacristan

Configure git

git config --global user.name "Sacristan"
git config --global user.email [email protected]
ssh-keygen -t rsa -b 4096 -C "[email protected]"
xclip -sel clip < ~/.ssh/id_rsa.pub

Configure fish shell and oh-my-fish

curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/tools/install.fish | fish
chsh -s `which fish`
cd ~/.config/fish/
git init
git remote add origin https://github.com/Sacristan/fish_config
rm config.fish
git pull origin master

Install redis

wget http://download.redis.io/releases/redis-stable.tar.gz
tar xzf redis-stable.tar.gz; and cd redis-stable
make
make test
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment