Skip to content

Super duper dotfiles for bash/vim/git plus safe install script. Also fresh OSX setup in the readme.

Notifications You must be signed in to change notification settings

turvas/dotfiles

 
 

Repository files navigation

bash/git/vim configuration dotfiles (plus safe install script).

Install dotfiles

with oneliner:

curl -sSL https://github.com/turvas/dotfiles/raw/master/install_from_web.sh | sh

or step by step

git clone https://[email protected]/turvas/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./install_dotfiles.sh # Don't worry, this will preserve existing dotfiles with timestamps!
source ~/.bash_profile # Apply new dotfiles to current shell

Bash prompt

Fancy bash prompt (with bonus pizza!) designed for legibility and speed, including timestamp, path, and local git branch/status. Git branch status colors explained in below screenshot: Git branch status colors

Setup Vim

### Install dotfile (if you didn't install all dotfiles above)
mv ~/.vimrc ~/.vimrc.`date "+%Y%m%d%H%M%S"` # Just in case...
wget https://raw.githubusercontent.com/mitochondrion/dotfiles/master/.vimrc -O ~/.vimrc

### Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

### Install plugins
git clone https://github.com/scrooloose/nerdcommenter.git ~/.vim/bundle/nerdcommenter
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
git clone https://github.com/airblade/vim-gitgutter ~/.vim/bundle/vim-gitgutter
git clone https://github.com/mileszs/ack.vim.git ~/.vim/bundle/ack.vim
git clone https://github.com/bronson/vim-trailing-whitespace ~/.vim/bundle/vim-trailing-whitespace
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim
git clone https://github.com/ervandew/supertab ~/.vim/bundle/supertab
git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace
git clone https://github.com/sheerun/vim-polyglot.git ~/.vim/bundle/vim-polyglot
git clone https://github.com/tpope/vim-fugitive.git ~/.vim/bundle/vim-fugitive
# git clone https://github.com/scrooloose/syntastic ~/.vim/bundle/syntastic # 🐌Removed because Syntastic can make vim unuseably slow

# Install Vim colors
mkdir -p ~/.vim/colors
git clone https://github.com/chriskempson/tomorrow-theme.git ~/.vim/colors/tomorrow-theme
cp ~/.vim/colors/tomorrow-theme/vim/colors/*.vim ~/.vim/colors/

Setup new OSX install

Use the below commands to set up a new instance of OSX and the associated tools/applications. Mix and match at your heart's desire!

### Command-line tools
xcode-select --install

### Fix OSX defaults
# Set new hostname
sudo scutil --set HostName [new hostname]

# Display full path and all files in Finder
defaults write com.apple.finder AppleShowAllFiles -boolean true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

# Setup screenshots directory
mkdir ~/Documents/Screenshots
defaults write com.apple.screencapture location ~/Documents/Screenshots
killall Finder

# Set a super fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02

# Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

# Turn on three-finger-drag
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerSwipeGesture -int 1

# Create workspace directory
mkdir ~/workspace

### Fix OSX Dock
# Show hidden apps
defaults write com.apple.dock showhidden -bool yes
# Speed up animations
defaults write com.apple.dock autohide-time-modifier -float 0.5
# Show only running apps
defaults write com.apple.dock static-only -bool true
# Restart Dock to load changes
killall Dock

# === No longer scriptable ===
# Set mouse tracking speed
# Hide dock
# Remove default apps from Dock
# Hide menu bar
# Turn on trackpad tap-to-click
# Turn on OSX Dark Mode

### Homebrew
# After installs, search terminal output for “==> Caveats” for post-brew instructions
#For up-to-date formulae, check https://formulae.brew.sh/
# For up-to-date cask formulae, check https://github.com/Homebrew/homebrew-cask/tree/master/Casks
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap caskroom/cask
brew tap homebrew/cask-drivers
brew tap caskroom/versions
brew install wget

# Command line tools
brew install ag
brew install pv
brew install tree
brew install gawk
brew install wget
brew install openssl
brew install httpie
brew install unrar
brew install unar
brew install calc
brew install htop
brew install geoip
brew install hh
brew install links
brew install lynx
brew install ncdu
brew install nmap
brew install speedtest_cli
brew install f3
brew install findutils
brew install fortune
brew install sox # play -n synth 5 sine 440
brew install ffmpeg
brew install watch
brew install macvim
brew install gnu-go
brew install f3

# Languages
brew install node
brew install python # Now defaults to python 3
brew install python2
brew install r
chmod -R u+w /usr/local/Cellar/r # As of 11/20/2018 the Homebrew R installation doesn't set the proper permissions for installing CRAN packages
brew install ruby
brew install go
brew install kotlin
brew cask install java

# Dev tools
brew install gcc # Can take FOREVER (~1 hour)
brew install git
brew install ctags
brew install gradle
brew cask install chromedriver
brew cask install postman
brew cask install charles
brew cask install rstudio
brew cask install android-studio
brew cask install intellij-idea
brew cask install pycharm-ce
brew cask install visual-studio-code
brew cask install ngrok
brew cask install dbeaver
# brew install phantomjs # PhantomJs deprecated in favor of headless Chrome/Firefox

# Infrastructure/devops
brew install postgres
brew install mysql
brew install redis
brew install heroku/brew/heroku
brew cask install docker
brew install docker
brew install docker-compose
brew install docker-machine
brew install docker-completion
brew install docker-compose-completion
brew install docker-machine-completion

# Desktop apps
brew cask install iterm2
brew cask install eqmac
brew cask install flux
brew cask install google-chrome
# brew cask install google-chrome-canary
brew cask install firefox
brew cask install grandperspective
brew cask install menumeters
brew cask install slack
brew cask install sloth
brew cask install spotify
brew cask install sonos
brew cask install pocket-casts
brew cask install steam
brew cask install textmate
brew cask install vlc
brew cask install menubar-countdown
brew cask install accessmenubarapps
brew cask install imagej
brew cask install google-earth
brew cask install chromecast
brew cask install time-out
brew cask install whatsapp
brew cask install MacDown
brew cask install sabaki
brew cask install spectacle
# brew cask install shiftit # Replaced by spectacle. Also I prefer the old Shiftit hotkeys anyway: https://github.com/mitochondrion/dotfiles/raw/master/ShiftIt.app.zip (mirror of https://github.com/downloads/onsi/ShiftIt/ShiftIt.app.zip)

# Defunct formulae?
# brew cask install sonos
# brew cask install wunderlist

# Homebrew cleanup
brew cleanup -s
brew doctor

### Install dotfiles
git clone [email protected]:mitochondrion/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./install_dotfiles.sh # Don't worry, this will preserve existing dotfiles with timestamps!
source ~/.bash_profile # Apply new dotfiles to current shell

### iTerm2 configs
# load iterm3_config.json iTerm2 3.0 configs manually via iTerm preferences menu

# DEPRECATED 2.0 METHOD
# wget https://raw.githubusercontent.com/mitochondrion/dotfiles/master/com.googlecode.iterm2.plist -O ~/Library/Preferences/com.googlecode.iterm2.plist

### NPM
npm install -g vtop
npm install -g json-minify

# Optional packages
# brew cask install sequel-pro

### PIP
# sudo easy_install pip # Unnecessary due to "brew install python"
pip3 install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools
pip3 install --user --upgrade awscli
pip3 install requests
pip install requests
pip3 install pylint
pip install pylint
pip install numpy
pip3 install numpy
pip install ipython
pip3 install ipython
pip install jupyter
pip3 install jupyter
pip install jupyterthemes
pip3 install jupyterthemes
pip install pandas
pip3 install pandas
pip install scikit-learn
pip3 install scikit-learn
pip3 install altair
pip3 install vega_datasets
pip3 install hvplot

brew install gfortran
pip install scipy
pip3 install scipy

brew install pkg-config
pip install matplotlib
pip3 install matplotlib

### VIM
# Vim plugins (using Pathogen)
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone https://github.com/scrooloose/nerdcommenter.git ~/.vim/bundle/nerdcommenter
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
git clone https://github.com/airblade/vim-gitgutter ~/.vim/bundle/vim-gitgutter
git clone https://github.com/mileszs/ack.vim.git ~/.vim/bundle/ack.vim
git clone https://github.com/bronson/vim-trailing-whitespace ~/.vim/bundle/vim-trailing-whitespace
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim
git clone https://github.com/ervandew/supertab ~/.vim/bundle/supertab
git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace
git clone https://github.com/sheerun/vim-polyglot.git ~/.vim/bundle/vim-polyglot
git clone https://github.com/tpope/vim-fugitive.git ~/.vim/bundle/vim-fugitive
# git clone https://github.com/scrooloose/syntastic ~/.vim/bundle/syntastic # 🐌Removed because Syntastic can make vim unuseably slow

# Vim colors
mkdir ~/.vim/colors
git clone https://github.com/chriskempson/tomorrow-theme.git ~/.vim/colors/tomorrow-theme
cp ~/.vim/colors/tomorrow-theme/vim/colors/*.vim ~/.vim/colors/

# XCode
sudo gem install cocoapods
mkdir ~/Library/Developer/Xcode/UserData/FontAndColorThemes
wget https://raw.githubusercontent.com/mitochondrion/XcodePreferences/master/FontAndColorThemes/akitchen_12.dvtcolortheme -O ~/Library/Developer/Xcode/UserData/FontAndColorThemes/akitchen_12.dvtcolortheme

# === Other Stuff ===
# https://github.com/downloads/onsi/ShiftIt/ShiftIt.app.zip (Old version had better hotkeys)
# http://www.dejal.com/timeout/
# http://member.ipmu.jp/yuji.tachikawa/MenuMetersElCapitan/
# Wunderlist
# Sonos

# === Browser Plugins ===
# https://github.com/mitochondrion/notes/wiki/Browser-Plugins

About

Super duper dotfiles for bash/vim/git plus safe install script. Also fresh OSX setup in the readme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 58.1%
  • Vim Script 41.9%