lots of stuff + osx-start script

main
Steffen Becker 11 years ago
parent 121c01a7ea
commit 34f0399f16

@ -20,13 +20,15 @@ namespace('setup', function() {
console.log('Linking files and dirs to your home directory...');
var cmds = [
'ln -s ~/dotfiles/vim ~/.vim',
'ln -s ~/dotfiles/oh-my-zsh ~/.oh-my-zsh',
'ln -s ~/dotfiles/agignore ~/.agignore',
'ln -s ~/dotfiles/aliases ~/.aliases',
'ln -s ~/dotfiles/exports ~/.exports',
'ln -s ~/dotfiles/functions ~/.functions',
'ln -s ~/dotfiles/gitconfig ~/.gitconfig',
'ln -s ~/dotfiles/gitignore ~/.gitignore',
'ln -s ~/dotfiles/hgignore_global ~/.hgignore_global',
'ln -s ~/dotfiles/jshintrc ~/.jshintrc',
'ln -s ~/dotfiles/pearrc ~/.pearrc',
'ln -s ~/dotfiles/slate.js ~/.slate.js',
'ln -s ~/dotfiles/tmux.conf ~/.tmux.conf',
'ln -s ~/dotfiles/vimrc ~/.vimrc',

@ -51,7 +51,8 @@ alias upall='sysup && brewup && rvmup && gemup && npmup'
# alias for re-installing npm from the web and default packages
alias npmins="curl"
alias npmins='curl https://npmjs.org/install.sh | sh && npm install -g grunt-cli && npm install -g jshint && npm install -g uglify-js && npm install -g jake'
# always use macvim but for 'vim'
alias vim=$EDITOR
@ -68,6 +69,13 @@ alias phpini='vim /usr/local/etc/php/5.4/php.ini'
alias http='_ vim /etc/apache2/httpd.conf'
# vagrant stuff
vu='vagrant up'
vr='vagrant reload'
vp='vagrant provision'
vh='vagrant halt'
# Easier navigation: .., ..., ~ and -
alias ..='cd ..'
alias ...='cd ../..'

@ -10,10 +10,14 @@ syntax: glob
*.vi
*.bak
*~
*.sass-cache
.~lock*
.tmp_*
.sass-cache
*.sass-cache
.revision
_srcs
log
tmp
node_modules
.DS_Store
Thumbs.db
@ -29,6 +33,6 @@ NERD_tree*
*.iws
*.ipr
*.iml
.git
.hg
.svn
.CVS

121
osx.sh

@ -0,0 +1,121 @@
#!/usr/bin/env bash
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Disable opening and closing window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Disable the “reopen windows when logging back in” option
# This works, although the checkbox will still appear to be checked,
# and the command needs to be entered again for every restart.
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Disable window animations and Get Info animations in Finder
defaults write com.apple.finder DisableAllAnimations -bool true
# Show all filename extensions in Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
# Allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# 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
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Show item info below desktop icons
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
# Enable snap-to-grid for desktop icons
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy kind" ~/Library/Preferences/com.apple.finder.plist
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Show the ~/Library folder
chflags nohidden ~/Library
# Enable highlight hover effect for the grid view of a stack (Dock)
defaults write com.apple.dock mouse-over-hilte-stack -bool true
# Enable spring loading for all Dock items
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
# Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true
# Remove the auto-hiding Dock delay
defaults write com.apple.Dock autohide-delay -float 10000
# Remove the animation when hiding/showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true
# Enable Safaris debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
# Only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
# Disable the Ping sidebar in iTunes
defaults write com.apple.iTunes disablePingSidebar -bool true
# Disable all the other Ping stuff in iTunes
defaults write com.apple.iTunes disablePing -bool true
# Make ⌘ + F focus the search input in iTunes
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
# Disable send and reply animations in Mail.app
defaults write com.apple.Mail DisableReplyAnimations -bool true
defaults write com.apple.Mail DisableSendAnimations -bool true
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
# Prevent Time Machine from prompting to use new hard drives as backup volume
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true

@ -1,2 +0,0 @@
#PEAR_Config 0.9
a:2:{s:10:"__channels";a:2:{s:12:"pecl.php.net";a:0:{}s:5:"__uri";a:0:{}}s:7:"php_ini";s:30:"/usr/local/etc/php/5.4/php.ini";}

@ -57,9 +57,11 @@ var chrome = slate.operation("focus", { "app": "Google Chrome" });
var mail = slate.operation("focus", { "app": "Mail" });
var fork = slate.operation("focus", { "app": "ForkLift" });
var ical = slate.operation("focus", { "app": "iCal" });
var shop = slate.operation("focus", { "app": "Photoshop" });
var launch = slate.operation("focus", { "app": "Launchbar" });
var ecoute = slate.operation("focus", { "app": "Ecoute" });
var adium = slate.operation("focus", { "app": "Adium" });
var macvim = slate.operation("focus", { "app": "MacVim" });
var time = slate.operation("focus", { "app": "TimeLog" });
var dash = slate.operation("focus", { "app": "Dash" });
var fox = slate.operation("focus", { "app": "Firefox" });
var fullscreen = slate.operation("move", {
@ -130,7 +132,7 @@ var fullhd = slate.operation("move", {
====================================================================== */
var hyper = ":shift,ctrl,alt,cmd";
var hyperModal = hyper + ",m:toggle";
var hyperModal = hyper + ",right:toggle";
// f = fast switching and a nice position in the home row
slate.bind("[" + hyper, hint, false);
@ -138,15 +140,16 @@ slate.bind("[" + hyper, hint, false);
slate.bind("]" + hyper, grid, false);
// most important apps on easy accesible keys
slate.bind("a" + hyper, iterm, false);
slate.bind("s" + hyper, chrome, false);
slate.bind("d" + hyper, mail, false);
slate.bind("t" + hyper, iterm, false);
slate.bind("c" + hyper, chrome, false);
slate.bind("m" + hyper, mail, false);
slate.bind("f" + hyper, fork, false);
slate.bind("j" + hyper, ical, false);
slate.bind("k" + hyper, ecoute, false);
slate.bind("l" + hyper, launch, false);
slate.bind(";" + hyper, shop, false);
slate.bind("i" + hyper, ical, false);
slate.bind("v" + hyper, macvim, false);
slate.bind("a" + hyper, adium, false);
slate.bind("l" + hyper, time, false);
slate.bind("d" + hyper, dash, false);
slate.bind("x" + hyper, fox, false);
// movements in modal mode with m
slate.bind("1" + hyperModal, lefthalf, false);

@ -113,9 +113,11 @@ if &term =~ '^screen'
endif
let g:solarized_contrast = 'high'
set background=dark
set t_Co=256
colorscheme solarized
set background=dark
let g:solarized_termtrans = 1
let g:solarized_contrast = 'high'
set fillchars=""

Loading…
Cancel
Save