Skip to content

Instantly share code, notes, and snippets.

@ryanolsonx
Last active June 7, 2022 14:18
Show Gist options
  • Save ryanolsonx/b629a08154d748dd74e2a342335de463 to your computer and use it in GitHub Desktop.
Save ryanolsonx/b629a08154d748dd74e2a342335de463 to your computer and use it in GitHub Desktop.
Setup dev environment
#!/bin/bash -e
echo 'alias ls="ls -FA"
export EDITOR=vim
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PATH="$PATH":"/usr/local/bin":"$HOME/bin"' > ~/.zshrc
echo 'set ai
set sts=2
set sw=2
set et
set bs=2
set ar
set pa+=src/**
set dir=/tmp
set bdir=/tmp
command! Fmt execute ":silent !$(npm bin)/prettier --write %" | execute ":redraw!"
nn <silent> \ :Fmt<cr>' > ~/.vimrc
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git vim ripgrep
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
git config --global user.name "Ryan Olson"
git config --global user.email rolson@aumni.fund
git config --global core.autocrlf input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment