Last active
June 7, 2022 00:00
-
-
Save ryanolsonx/a6b122b4bd116d5d25dad31972f45f8e to your computer and use it in GitHub Desktop.
Bigger dev env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] | |
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