Skip to content

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

License

Notifications You must be signed in to change notification settings

iancmcc/dotfiles-old

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

867 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mathias/dotfiles

Screenshot of my shell prompt

Installation

The directory layout of this repo is inspired by Zach Holman's excellent dotfiles repo, even though I don't use any of his actual config. You can read about why having a good set of dotfiles is important on Zach's blog.

My vim config is heavily inspired by the structure of @begriff's vim config but I don't use leader commands, so I used the basic structure while adding my own config.

Organization

bash/

Inside bash/ is a my bash config scripts:

  • .bash_profile is usually loaded first for most interactive shells.
  • .bashrc is initially loaded, and loads other config files.
  • .bashrc.alias is a set of aliases that I care about.
  • .bashrc.local is for local system config, and is omitted.
  • .bashrc.prompt exists purely to set up the bash prompt.
  • .bashrc.completion is loaded last and sets up all bash completion features and some RVM features.

emacs/

I went back to using my own .emacs file:

ln -s ~/dev/dotfiles/emacs/.emacs ~/.emacs
mkdir -p ~/.emacs.d

I launch emacs with a convenient little script called e. Install it with:

ln -s ~/dev/dotfiles/emacs/e ~/bin/e
chmod +x ~/bin/e

The script checks if there is an emacs server running. If there isn't, it starts one up. Then it connects an emacsclient to it with the requested file.

git/

The important file in git/ is the .gitconfig file which prepares some of my git aliases and sets my git user.

Update .gitconfig with your information:

[user]
  name = Matt Gauger
  email = matt.gauger@gmail.com

The installed Git version should be 1.8.0 or newer to take advantage of some settings and bash prompt settings.

On Linux, you may see errors because bash can't find __git_ps1 -- especially if you compiled git from scratch. To fix this, I included the git-prompt.sh script from the git repo in git/. Move it somewhere like ~/bin and add a line to source it in .bashrc

Phoenix config

On OSX I use Phoenix for window management. My config file for it is written in ClojureScript, and it can be foudn here with instructions for use:

https://github.com/mathias/phoenix-config/blob/master/src/phoenix.cljs

scripts/

scripts/pair

Use rylnd's pair script: rylnd/dotfiles

Follow those instructions to install. My own personal fork of the pair script is no longer maintained.

tmux/

./brew.sh
  • Install the bundles with :BundleInstall in vim after symlinking things into place.

To Use

I don't suggest you go using these files without understanding what they do. But if you must, the files get symlinked into position in your home directory from this directory. Their filenames should remain the same. I highly suggest that if you're going to use pieces of this, that you fork this repo into your own Github account, at the very least. Then remove what you don't want.

Bugs

I can't guarantee this will work for you. These are my own config files and highly personalized. As noted below in the license, there is no warranty.

Copyright (c) 2012 Matt Gauger

twitter/mathias
Mathias Bynens

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vim Script 61.7%
  • Shell 22.9%
  • Python 13.3%
  • Ruby 1.3%
  • JavaScript 0.8%