diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c85396f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +link-private diff --git a/README.md b/README.md index 4b2efec..155de2e 100644 --- a/README.md +++ b/README.md @@ -5,32 +5,40 @@ to install the command line tools) ``` - git clone --recursive https://github.com/tedkulp/dotfiles.git ~/dotfiles +git clone --recursive https://github.com/tedkulp/dotfiles.git ~/dotfiles ``` * Optionally, run the osx script. This will set a bunch of sensible Mac defaults. ``` - ~/dotfiles/osx +~/dotfiles/osx ``` * Run the brew command. Make a sandwich... get a nice beverage... maybe see if something is on Netflix. This will install a lot of software from source. ``` - ~/dotfiles/brew +~/dotfiles/brew ``` * Now, optionally, run the cask command. This will install some nice Mac software. ``` - ~/dotfiles/cask +~/dotfiles/cask +``` + +* Setup Dropbox and let it sync. We need the link-private directory for all our ssh and + gnupg stuff + +* After Dropbox is synced, link up the link-private directory to your dotfiles. + +``` +ln -s ~/Dropbox/link-private ~/dotfiles/ ``` * Run the dotfiles command. This will symlink everything into place in your home - directory. If you have some secret files to put into the dotfiles/copy directory, - now would be a good time. + directory. ``` - ~/dotfiles/dotfiles +~/dotfiles/dotfiles ``` diff --git a/brew b/brew index edd5a46..a1fef86 100755 --- a/brew +++ b/brew @@ -31,13 +31,19 @@ brew install apple-gcc42 brew install chruby brew install coreutils brew install elixir +brew install gdbm brew install git brew install git-flow brew install go brew install heroku-toolbelt +brew install hub brew install leiningen +brew install libffi +brew install libyaml brew install macvim --override-system-vim brew install maven +brew install openssl +brew install readline brew install reattach-to-user-namespace brew install ruby-install brew install tmux diff --git a/cask b/cask index cdff757..d929fe7 100755 --- a/cask +++ b/cask @@ -24,6 +24,7 @@ if [ -x "$brew_path" ] ; then installcask istat-menus installcask rdio installcask sizeup + installcask skitch installcask skype installcask sublime-text installcask vagrant diff --git a/dotfiles b/dotfiles index 358ca29..47c598f 100755 --- a/dotfiles +++ b/dotfiles @@ -8,6 +8,10 @@ function link_file() { ln -sf ${2#$HOME/} ~/ } +function link-private_file() { + ln -sf ${2#$HOME/} ~/ +} + function copy_file() { cp -f $2 ~/ } @@ -18,7 +22,7 @@ function post_file() { function copy_or_link() { local base dest - local cmd="find $HOME/dotfiles/$1 -mindepth 1 -maxdepth 1" + local cmd="find -L $HOME/dotfiles/$1 -mindepth 1 -maxdepth 1" # If no files, bail if [ "x`${cmd}`" == "x" ]; then return; fi @@ -33,5 +37,6 @@ function copy_or_link() { } copy_or_link "link" +copy_or_link "link-private" copy_or_link "copy" copy_or_link "post" diff --git a/link/.powconfig b/link/.powconfig new file mode 100644 index 0000000..5082a32 --- /dev/null +++ b/link/.powconfig @@ -0,0 +1,2 @@ +source /usr/local/opt/chruby/share/chruby/chruby.sh +chruby ruby-2.0 diff --git a/link/.tmux.conf b/link/.tmux.conf index 780a0fd..77de51b 100644 --- a/link/.tmux.conf +++ b/link/.tmux.conf @@ -22,6 +22,9 @@ bind C-a last-window bind | split-window -h bind - split-window -v +# Use multiple sessions -- it's da bomb, yo +bind C-s choose-session + # Move between panes vim style bind h select-pane -L bind j select-pane -D diff --git a/osx b/osx index e774722..cb80739 100755 --- a/osx +++ b/osx @@ -178,9 +178,9 @@ defaults write com.apple.BezelServices kDimTime -int 300 # Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with # `Inches`, `en_GB` with `en_US`, and `true` with `false`. defaults write NSGlobalDomain AppleLanguages -array "en" "nl" -defaults write NSGlobalDomain AppleLocale -string "en_GB@currency=EUR" -defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters" -defaults write NSGlobalDomain AppleMetricUnits -bool true +defaults write NSGlobalDomain AppleLocale -string "en_US@currency=USD" +defaults write NSGlobalDomain AppleMeasurementUnits -string "Inches" +defaults write NSGlobalDomain AppleMetricUnits -bool false # Set the timezone; see `systemsetup -listtimezones` for other values systemsetup -settimezone "America/New_York" > /dev/null diff --git a/post/fix-ssh-perms b/post/fix-ssh-perms new file mode 100644 index 0000000..d851b2a --- /dev/null +++ b/post/fix-ssh-perms @@ -0,0 +1,2 @@ +chmod 700 ~/.ssh +chmod 600 ~/.ssh/* diff --git a/source/aliases.zsh b/source/aliases.zsh index 5f5a96d..544e8bc 100644 --- a/source/aliases.zsh +++ b/source/aliases.zsh @@ -1,2 +1,4 @@ alias myip='curl -s ifconfig.me | tee /dev/stderr | pbcopy' alias be='bundle exec' + +alias history='fc -l 1' diff --git a/source/git.zsh b/source/git.zsh new file mode 100644 index 0000000..006f770 --- /dev/null +++ b/source/git.zsh @@ -0,0 +1,4 @@ +alias ghm='git push heroku master' + +# For "hub" http://hub.github.com/ +eval "$(hub alias -s)" diff --git a/source/history.zsh b/source/history.zsh new file mode 100644 index 0000000..02107e1 --- /dev/null +++ b/source/history.zsh @@ -0,0 +1 @@ +bindkey '^r' history-incremental-search-backward diff --git a/source/nvm.zsh b/source/nvm.zsh index d4a0026..2ca69f5 100644 --- a/source/nvm.zsh +++ b/source/nvm.zsh @@ -1,6 +1,7 @@ if [[ -d $HOME/.nvm ]]; then [ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM else - echo "" echo "You don't have nvm installed. Get at it, buddy!" + echo "hint: curl https://raw.github.com/creationix/nvm/master/install.sh | sh" + echo "" fi diff --git a/source/tmux.zsh b/source/tmux.zsh new file mode 100644 index 0000000..7cea0f2 --- /dev/null +++ b/source/tmux.zsh @@ -0,0 +1,2 @@ +alias tmuxc='tmux new-session' +alias tmuxcn='tmux new-session -s '