Created
January 25, 2013 00:33
-
-
Save kejadlen/4630324 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if [ -z "$CONF_DIR" ]; then | |
# CONF_DIR=$HOME/Dropbox/conf_dir | |
CONF_DIR="$( cd -P "$( dirname "${BASH_SOURCE}" )/.." && pwd )" | |
fi | |
# vim | |
ln -s $CONF_DIR/.vimrc $HOME/.vimrc | |
mkdir $HOME/.vim_backup | |
mkdir $HOME/.vim_tmp | |
mkdir $HOME/.vim_undo | |
ln -s $CONF_DIR/.vim $HOME/.vim | |
# pentadactyl | |
ln -s $CONF_DIR/.pentadactylrc $HOME/.pentadactylrc | |
mkdir $HOME/.pentadactyl | |
ln -s $CONF_DIR/.pentadactyl/plugin $HOME/.pentadactyl/plugin | |
# irb/pry | |
ln -s $CONF_DIR/.irbrc $HOME/.irbrc | |
ln -s $CONF_DIR/.pryrc $HOME/.pryrc | |
# ack | |
ln -s $CONF_DIR/.ackrc $HOME/.ackrc | |
# git | |
ln -s $CONF_DIR/.gitconfig $HOME/.gitconfig | |
ln -s $CONF_DIR/.gitignore $HOME/.gitignore | |
# bash | |
ln -s $CONF_DIR/.bash_profile $HOME/.bash_profile | |
ln -s $CONF_DIR/.bashrc $HOME/.bashrc | |
ln -s $CONF_DIR/.inputrc $HOME/.inputrc | |
# screen/tmux | |
# ln -s $CONF_DIR/.screenrc $HOME/.screenrc | |
ln -s $CONF_DIR/.tmux.conf $HOME/.tmux.conf | |
# ssh | |
ln -s $CONF_DIR/.ssh $HOME/.ssh | |
chmod 600 $CONF_DIR/.ssh/id_rsa | |
chmod 600 $CONF_DIR/.ssh/github_rsa | |
# fish | |
# mkdir $HOME/.config | |
# ln -s $CONF_DIR/fish $HOME/.config/fish | |
# autojump | |
# mkdir -p ~/.local/share | |
# OS X | |
cp $CONF_DIR/Fonts/* $HOME/Library/Fonts | |
chflags nohidden ~/Library # show ~/Library in the Finder | |
# defaults write -g NSScrollAnimationEnabled -bool NO # disable smooth scrolling | |
# defaults write com.apple.dock itunes-notifications -bool true | |
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
defaults write -g NSDisableAutomaticTermination -bool true | |
defaults write NSGlobalDomain AppleFontSmoothing -int 2 # subpixel rendering on non-Apple LCDs | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 # full keyboard access | |
defaults write NSGlobalDomain KeyRepeat -int 0 # max the keyboard repeat rate | |
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false # disable resume | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true # add debug menu in web views | |
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true # enable Debug menu in Safari | |
defaults write com.apple.dashboard mcx-disabled -bool true # disable dashboard | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true # don't write .DS_Store to network volumes | |
defaults write com.apple.dock autohide -bool true # automatically hide and show the dock | |
defaults write com.apple.dock mineffect -string scale # minimize windows using the scale effect | |
defaults write com.apple.dock no-glass -bool true # 2D dock | |
defaults write com.apple.dock orientation -string left | |
defaults write com.apple.dock pinning -string start # don't center the dock | |
defaults write com.apple.dock showhidden -bool true # translucent icons for hidden apps | |
defaults write com.apple.dock wvous-bl-corner -int 10 # set the bottom left hot corner to sleep the display | |
defaults write com.apple.dt.Xcode DVTTextAutoSuggestCompletionsDelay 0.1 # Xcode autocomplete delay | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # don't ask when changing file extension | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # show full path in Finder | |
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F" # remap cmd+f to find in iTunes | |
defaults write com.apple.iTunes invertStoreLinks -bool true | |
defaults write com.apple.screencapture disable-shadow -bool true # no window shadows when capturing windows | |
defaults write com.apple.terminal StringEncodings -array 4 # UTF-8 in Terminal | |
# make Desktop icons snap to grid | |
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
# disable disk image verification | |
# defaults write com.apple.frameworks.diskimages skip-verify -bool true | |
# defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true | |
# defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true | |
# automatically open a new Finder window when a volume is mounted | |
# defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true | |
# defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true | |
# defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true | |
# QuickLook | |
# mkdir -p $HOME/Library/QuickLook/ | |
# cp -r $CONF_DIR/QuickLook/* $HOME/Library/QuickLook/ | |
ln -s $CONF_DIR/QuickLook $HOME/Library/QuickLook | |
qlmanage -r | |
for app in Finder Dock SystemUIServer; do killall "$app" > /dev/null 2>&1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment