Skip to content

.files, including ~/.osx — sensible hacker defaults for OS X

Notifications You must be signed in to change notification settings

amaxwell01/dotfiles

 
 

Repository files navigation

Andrew's dotfiles.

  • This repo is mostly for me but you're welcome to make suggestions.
  • A script which connects to Github, clones the repo to the server or machine then updates the contents of that repo and maps it on the machine


Installation:

  1. Run the following:
git clone https://github.com/amaxwell01/dotfiles.git && cd dotfiles && node sync.js add force

Note: To update later, just run the sync again.




Dotfile Sync Dependencies:

  • Git
  • Node

Download Git:

http://git-scm.com/download/


Node.js Option 1 - Volta:

# install Volta
curl https://get.volta.sh | bash

# install Node
volta install node

# start using Node
node

Node Option 2 - NVM:

# Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash;

# Use NVM to install Node
nvm install iojs-v2.3.3

# Use NVM to 
nvm use iojs-v2.3.3
nvm alias default iojs-v2.3.3


Install required software:

  • Git
  • oh-my-zsh
  • NVM
  • Node
  • node-debug
  • vim
  • gsutil
  • gcloud
  • git-open

Deprecated Software

  • sass
  • subl mapping
  • docker
  • grunt

Themes:

draculatheme - Dark Theme for VS Code, VIM, ZSH, iTerm, Slack.

Git Open

npm install --global git-open

private config

Toss it into a file called .extra which you do not commit to this repo and just keep in your ~/

I do something nice with my PATH there:

# PATH like a bawss
      PATH=/opt/local/bin
PATH=$PATH:/opt/local/sbin
PATH=$PATH:/bin
PATH=$PATH:~/.rvm/bin
PATH=$PATH:~/code/git-friendly
# ...

export PATH

Download Software

curl -O http://downloads.puppetlabs.com/mac/puppet-latest.dmg
wget http://downloads.puppetlabs.com/mac/puppet-latest.dmg

Syntax highlighting

…is really important. even for these files.

Install Dotfiles Syntax Highlighting via Sublime Text 2 Package Control

Sensible OS X defaults

  • When setting up a new Mac, you may want to set some sensible OS X defaults:
./.osx

overview of files

Automatic config

  • .vimrc, .vim - vim config, obv.

shell environement

  • .aliases
  • .bash_profile
  • .bash_prompt
  • .bashrc
  • .exports
  • .functions
  • .extra - not included, explained above

manual run

  • install-deps.sh - random apps i need installed
  • .osx - run on a fresh osx machine
  • .brew - homebrew intialization

git, brah

  • .git

  • .gitattributes

  • .gitconfig

  • .gitignore

  • .inputrc - config for bash readline

Aliases (.aliases)

alias chef='/var/chef-solo/scripts/run_chef.sh -o -v'

ZSH:

Set variables in zsh

CONFIG=~/.bashrc

Restart zsh

source ~/.zshrc

BASH:

Set variables in bash

CONFIG=~/.bashrc

Restart bash

source ~/.bashrc

Originally inspired by:

mathias's readme is awesome. go read it.

Similar projects

I recommend getting a .jshintrc and .editorconfig defined for all your projects.

About

.files, including ~/.osx — sensible hacker defaults for OS X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 87.7%
  • Shell 4.9%
  • Python 3.8%
  • Batchfile 1.4%
  • JavaScript 0.8%
  • Vim Snippet 0.6%
  • Other 0.8%