Skip to content

Instantly share code, notes, and snippets.

@ryanolsonx
Last active June 7, 2022 00:00
Show Gist options
  • Save ryanolsonx/a6b122b4bd116d5d25dad31972f45f8e to your computer and use it in GitHub Desktop.
Save ryanolsonx/a6b122b4bd116d5d25dad31972f45f8e to your computer and use it in GitHub Desktop.
Bigger dev env
#!/usr/bin/env bash -e
echo "Setting up dotfiles..."
echo 'unbind C-b
set -g prefix `
bind-key ` last-window
bind-key e send-prefix
set -g default-terminal "screen-256color"
set -g escape-time 0
set -g status-left-length 20
set -g status-bg black
set -g status-fg white' > ~/.tmux.conf
echo 'alias ls="ls -FA"
alias tmux="tmux -u -2"
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
echo "Done."
echo "Installing brew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Done."
echo "Installing brew things..."
brew install git tmux ctags vim ripgrep
brew install --cask visual-studio-code sublime-text sublime-merge emacs firefox google-chrome
echo "Done."
echo "Installing NVM..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
echo "Done."
echo "Configuring git..."
git config --global user.name "Ryan Olson"
git config --global user.email rolson@aumni.fund
git config --global core.autocrlf input
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment