Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mathiasbynens/dotfiles
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: eins78/dotfiles
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Sep 14, 2012

  1. Update README.md

    eins78 committed Sep 14, 2012
    Copy the full SHA
    ea6bd96 View commit details
  2. Update .osx

    eins78 committed Sep 14, 2012
    Copy the full SHA
    a71bd0c View commit details
  3. Copy the full SHA
    6bf8ea9 View commit details
  4. .brew: personal stuff

    eins78 committed Sep 14, 2012
    Copy the full SHA
    9f168ff View commit details
  5. .brew: cabal stuff

    eins78 committed Sep 14, 2012
    Copy the full SHA
    294317a View commit details
  6. Copy the full SHA
    d9d09d3 View commit details
  7. .screenrc: do show startup msg

    eins78 committed Sep 14, 2012
    Copy the full SHA
    2658e8a View commit details

Commits on Sep 15, 2012

  1. tmux

    Max F. Albrecht authored and Max F. Albrecht committed Sep 15, 2012
    Copy the full SHA
    77b29d8 View commit details
  2. less verbose prompt

    Max F. Albrecht authored and Max F. Albrecht committed Sep 15, 2012
    Copy the full SHA
    e9993db View commit details
  3. completion-ignore-case off

    Max F. Albrecht authored and Max F. Albrecht committed Sep 15, 2012
    Copy the full SHA
    130ff3e View commit details
  4. add tmux.conf

    Max F. Albrecht authored and Max F. Albrecht committed Sep 15, 2012
    Copy the full SHA
    0e148f5 View commit details

Commits on Nov 23, 2012

  1. Copy the full SHA
    a545aaf View commit details
  2. Copy the full SHA
    2120cd1 View commit details

Commits on Nov 24, 2012

  1. bash: Update custom Bash prompt

    Use git commands to directly enquire about the state of the working
    tree. Where possible, git plumbing commands are used. In some instances,
    git porcelain commands are used (where plumbing commands fail on freshly
    initialized repos) but there is no reliance on string data in their
    output.
    
    The previous method relied on specific strings in the output of commands
    (`status` and `branch`) which was very unreliable. Those commands make
    no guarantees about the nature of the text they return and should not be
    used for scripting purposes.
    
    Enhancements included in this update:
    
    * Display the short SHA of a commit when there is no branch name.
    * Display the `$` character when there are stashed changes.
    
    Conflicts:
    	bash/bash_prompt
    necolas authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    0df52ba View commit details
  2. .bash_prompt: integrate @necolas changes with upstream style

    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    5c4fdb9 View commit details
  3. .bash_prompt: safer echo without newline

    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    e885e10 View commit details
  4. .bash_prompt: call 'git' directly, without aliases

    Don't call `git`, call `command git`.
    
    Otherwise the prompt could be slow if you aliased a git helper like hub, see <https://github.com/defunkt/hub#is-your-shell-prompt-slow>.
    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    5f901fd View commit details
  5. upgrade from #upstream and #bash-prompt-better-git

    # By Mathias Bynens (8) and others
    * refs/heads/bash-prompt-better-git:
      .bash_prompt: call 'git' directly, without aliases
      .bash_prompt: safer echo without newline
      .bash_prompt: integrate @necolas changes with upstream style
      bash: Update custom Bash prompt
      .gitconfig: Set `push.default = simple`
      bin: Update to Bash 4.2.39
      .bash_prompt: Use `tput setaf 0` for white
      .osx: Add command to remove all Dock icons
      README: Recommend sourcing the bootstrapper
      .osx: Add Mac App Store section
      .aliases: Make `update` run `brew cleanup`
      .osx: Allow installing user scripts via Userscripts.org
      .osx: Allow installing user scripts via GitHub or gists
      .aliases: Make `update` update Ruby gems as well
      .aliases: Add `dl`
      .aliases: Alias `sha1sum` if needed
    
    Conflicts:
    	.aliases
    	.bash_prompt
    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    ee43838 View commit details
  6. .gitconfig: no push setting

    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    d5d359a View commit details
  7. .bash-prompt: bracket style with space

    Max F. Albrecht authored and Max F. Albrecht committed Nov 24, 2012
    Copy the full SHA
    09118c1 View commit details

Commits on Jan 20, 2013

  1. tmux

    eins78 authored and Max F. Albrecht committed Jan 20, 2013
    Copy the full SHA
    88e6d0e View commit details
  2. .gitconfig: ignore whitespace whining by git, don't fix it automagically

    It's more trouble than it's worth. Especially since I differ with git on some 'errors'.
    Max F. Albrecht authored and Max F. Albrecht committed Jan 20, 2013
    Copy the full SHA
    867b082 View commit details

Commits on Jan 21, 2013

  1. add NPM bins to path

    Max F. Albrecht authored and Max F. Albrecht committed Jan 21, 2013
    Copy the full SHA
    47221ed View commit details

Commits on Feb 3, 2013

  1. functions: server: echo full URL before starting server

    useful on linux systems where the 'open' command will fail to open the URL in most distress.
    eins78 committed Feb 3, 2013
    Copy the full SHA
    a9ec4e9 View commit details
  2. gitconfig: whitespace = warn

    eins78 committed Feb 3, 2013
    Copy the full SHA
    f85b3f3 View commit details

Commits on Feb 12, 2013

  1. Inform the user that SHELL !== JS 8)

    eins78 authored and Max F. Albrecht committed Feb 12, 2013
    Copy the full SHA
    7929550 View commit details

Commits on Apr 9, 2013

  1. gitignore: .extra

    eins78 committed Apr 9, 2013
    Copy the full SHA
    f5b620f View commit details
  2. #fix tmux.conf

    eins78 committed Apr 9, 2013
    Copy the full SHA
    f8512bc View commit details

Commits on Jun 9, 2013

  1. move @KTE stuff to .functions

    eins78 committed Jun 9, 2013
    Copy the full SHA
    cfaf696 View commit details
  2. @KTE: add psh() for ssh without key checking and warning

    Signed-off-by: Max F. Albrecht <1@178.is>
    eins78 committed Jun 9, 2013
    Copy the full SHA
    bff2122 View commit details
  3. Copy the full SHA
    016f273 View commit details
  4. Revert "#fix tmux.conf"

    This reverts commit f8512bc.
    eins78 committed Jun 9, 2013
    Copy the full SHA
    ddeff4b View commit details

Commits on Jul 5, 2013

  1. update Terminal.app Theme

    eins78 committed Jul 5, 2013
    Copy the full SHA
    8075993 View commit details
  2. psh() -> pssh()

    eins78 committed Jul 5, 2013
    Copy the full SHA
    2a3be28 View commit details

Commits on Aug 12, 2013

  1. Update README.md

    eins78 committed Aug 12, 2013
    Copy the full SHA
    17c46e9 View commit details
  2. Update README.md

    eins78 committed Aug 12, 2013
    Copy the full SHA
    d11bdce View commit details

Commits on Dec 8, 2013

  1. Copy the full SHA
    60811a2 View commit details
  2. Copy the full SHA
    1472b42 View commit details
Showing with 428 additions and 55 deletions.
  1. +2 −1 .aliases
  2. +3 −0 .bash_profile
  3. +61 −7 .bash_prompt
  4. +12 −1 .brew
  5. +44 −0 .functions
  6. +2 −2 .gitconfig
  7. +2 −1 .gitignore
  8. +1 −1 .inputrc
  9. +35 −32 .osx
  10. +1 −1 .screenrc
  11. +32 −0 .tmux.conf
  12. +17 −9 README.md
  13. +216 −0 init/KTE.terminal
3 changes: 2 additions & 1 deletion .aliases
Original file line number Diff line number Diff line change
@@ -73,6 +73,7 @@ command -v hd > /dev/null || alias hd="hexdump -C"
# OS X has no `md5sum`, so use `md5` as a fallback
command -v md5sum > /dev/null || alias md5sum="md5"


# OS X has no `sha1sum`, so use `shasum` as a fallback
command -v sha1sum > /dev/null || alias sha1sum="shasum"

@@ -124,4 +125,4 @@ done
# Stuff I never really use but cannot delete either because of http://xkcd.com/530/
alias stfu="osascript -e 'set volume output muted true'"
alias pumpitup="osascript -e 'set volume 7'"
alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'"
alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'"
3 changes: 3 additions & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH"

# add NPM bins to path
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/share/npm/bin:$PATH"

# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
68 changes: 61 additions & 7 deletions .bash_prompt
Original file line number Diff line number Diff line change
@@ -43,13 +43,67 @@ export WHITE
export BOLD
export RESET

function parse_git_dirty() {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
is_git_repo() {
git rev-parse --is-inside-work-tree &> /dev/null
}

function parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/"

get_git_branch() {
local branch_name

# Get the short symbolic ref
branch_name=$(command git symbolic-ref --quiet --short HEAD 2> /dev/null) ||
# If HEAD isn't a symbolic ref, get the short SHA
branch_name=$(command git rev-parse --short HEAD 2> /dev/null) ||
# Otherwise, just give up
branch_name="(unknown)"

echo $branch_name
}

# Git status information
function prompt_git() {
local git_info git_state uc us ut st

if ! is_git_repo; then
return 1
fi

# abort when git-annex is used
if [[ -d ".git/annex" ]]; then
echo ' [~git-annex~]'
return 1
fi

git_info=$(get_git_branch)

# Check for uncommitted changes in the index
if ! `command git diff --quiet --ignore-submodules --cached`; then
uc="+"
fi

# Check for unstaged changes
if ! `command git diff-files --quiet --ignore-submodules --`; then
us="*"
fi

# Check for untracked files
if [ -n "$(command git ls-files --others --exclude-standard)" ]; then
ut="?"
fi

# Check for stashed files
if `command git rev-parse --verify refs/stash &>/dev/null`; then
st="$"
fi

git_state=$uc$us$ut$st

# Combine the branch name and state information
if [[ $git_state ]]; then
git_info="$git_info|$git_state"
fi

printf " ${PURPLE}[${git_info}]"
}

export PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$WHITE\]\n\$ \[$RESET\]"
export PS2="\[$ORANGE\]→ \[$RESET\]"
export PS1="\[${BOLD}${MAGENTA}\]\u\[$WHITE\]@\[$ORANGE\]\h\[$WHITE\]:\[$GREEN\]\w\[$WHITE\]\$(prompt_git)\[$WHITE\]\n\$ \[$RESET\]"
13 changes: 12 additions & 1 deletion .brew
Original file line number Diff line number Diff line change
@@ -44,5 +44,16 @@ brew install rhino
brew install tree
brew install webkit2png

# personal stuff
brew install imagemagick
brew install haskell-platform
brew install ssh-copy-id
brew install tmux
brew install mosh

# Remove outdated versions from the cellar
brew cleanup
brew cleanup

# Cabal Stuff
cabal update
cabal install pandoc
44 changes: 44 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ function dataurl() {
# Start an HTTP server from a directory, optionally specifying the port
function server() {
local port="${1:-8000}"
echo "Opening Server on http://localhost:${port}/" &
sleep 1 && open "http://localhost:${port}/" &
# Set the default Content-Type to `text/plain` instead of `application/octet-stream`
# And serve everything as UTF-8 (although not technically correct, this doesn’t break anything for binary files)
@@ -143,4 +144,47 @@ function unquarantine() {
for attribute in com.apple.metadata:kMDItemDownloadedDate com.apple.metadata:kMDItemWhereFroms com.apple.quarantine; do
xattr -r -d "$attribute" "$@"
done
}

function pushme() {
local text
if [ -t 0 ]; then
text="$1" # argument
else
text=$(cat) # pipe
fi

SERVICES="say notifo boxcar"
for SERVICE in $SERVICES
do {
if [ $(type -t "$SERVICE") ]
then ( echo "$text" | "$SERVICE" & >/dev/null )
fi
}
done
}

# KTE stuff

# ssh without keycheck. use with p!! after you've tried 'ssh foo'.
function pssh() {
ssh -q -o 'UserKnownHostsFile /dev/null' -o 'StrictHostKeyChecking no' "$@"
}

# WTF: put after any command and when it tell you when it finishes,
# outputs "DONE" or "FAIL" depending on exit code via `echo`
# usage: ./longtime.sh ; wtf
function wtf() {
S="$?" # save staus code
# make message
[[ $S = 0 ]] && OUT="DONE" || OUT="FAIL $S"
echo "$OUT" # echo message
exit $S # exit with same status code (chainable)
}

# Inform the user that SHELL !== JS 8)
function var () {
echo "This is POSIX! No javascript allowed!"
echo "I will drop you into node.js…"
exec node
}
4 changes: 2 additions & 2 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@

[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
whitespace = warn

[core]
# Use custom `.gitignore` and `.gitattributes`
@@ -77,4 +77,4 @@
insteadOf = "gist:"

[push]
default = simple
#default = simple
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -11,4 +11,5 @@ Thumbs.db

# Files that might appear on external disks
.Spotlight-V100
.Trashes
.Trashes
/.extra
2 changes: 1 addition & 1 deletion .inputrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Make Tab autocomplete regardless of filename case
set completion-ignore-case on
#set completion-ignore-case on

# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
67 changes: 35 additions & 32 deletions .osx
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################

# Set computer name (as done via System Preferences → Sharing)
sudo scutil --set ComputerName "MathBook Pro"
sudo scutil --set HostName "MathBook Pro"
sudo scutil --set LocalHostName "MathBook-Pro"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "MathBook-Pro"
sudo scutil --set ComputerName "Quince"
sudo scutil --set HostName "Quince.178.is"
sudo scutil --set LocalHostName "Quince"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "Quince"

# Menu bar: disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
@@ -54,17 +54,17 @@ defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true

# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
#defaults write com.apple.LaunchServices LSQuarantine -bool false

# Display ASCII control characters using caret notation in standard text views
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true

# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
#defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false

# Disable automatic termination of inactive apps
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
#defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true

# Disable the crash reporter
#defaults write com.apple.CrashReporter DialogType -string "none"
@@ -85,7 +85,7 @@ sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo Hos
systemsetup -setrestartfreeze on

# Never go into computer sleep mode
systemsetup -setcomputersleep Off > /dev/null
#systemsetup -setcomputersleep Off > /dev/null

# Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
@@ -106,12 +106,12 @@ defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClic
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true

# Trackpad: swipe between pages with three fingers
defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1
#defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
#defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
#defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1

# Disable “natural” (Lion-style) scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
#defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false

# Increase sound quality for Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
@@ -152,10 +152,13 @@ defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
defaults write NSGlobalDomain AppleMetricUnits -bool true

# Set the timezone; see `systemsetup -listtimezones` for other values
systemsetup -settimezone "Europe/Brussels" > /dev/null
systemsetup -settimezone "Europe/Berlin" > /dev/null

# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
#defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Enable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool true

###############################################################################
# Screen #
@@ -172,7 +175,7 @@ defaults write com.apple.screencapture location -string "$HOME/Desktop"
defaults write com.apple.screencapture type -string "png"

# Disable shadow in screenshots
defaults write com.apple.screencapture disable-shadow -bool true
#defaults write com.apple.screencapture disable-shadow -bool true

# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
@@ -188,7 +191,7 @@ sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutio
defaults write com.apple.finder QuitMenuItem -bool true

# Finder: disable window animations and Get Info animations
defaults write com.apple.finder DisableAllAnimations -bool true
#defaults write com.apple.finder DisableAllAnimations -bool true

# Show icons for hard drives, servers, and removable media on the desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
@@ -197,7 +200,7 @@ defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

# Finder: show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
#defaults write com.apple.finder AppleShowAllFiles -bool true

# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
@@ -221,9 +224,9 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
defaults write com.apple.desktopservices DSDontWriteNetworkStores -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
#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.frameworks.diskimages auto-open-ro-root -bool true
@@ -267,9 +270,9 @@ defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
chflags nohidden ~/Library

# Remove Dropbox’s green checkmark icons in Finder
file=/Applications/Dropbox.app/Contents/Resources/check.icns
[ -e "$file" ] && mv -f "$file" "$file.bak"
unset file
#file=/Applications/Dropbox.app/Contents/Resources/check.icns
#[ -e "$file" ] && mv -f "$file" "$file.bak"
#unset file

###############################################################################
# Dock & hot corners #
@@ -293,17 +296,17 @@ defaults write com.apple.dock show-process-indicators -bool true
#defaults write com.apple.dock persistent-apps -array

# Don’t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false
#defaults write com.apple.dock launchanim -bool false

# Speed up Mission Control animations
defaults write com.apple.dock expose-animation-duration -float 0.1
#defaults write com.apple.dock expose-animation-duration -float 0.1

# Don’t group windows by application in Mission Control
# (i.e. use the old Exposé behavior instead)
defaults write com.apple.dock expose-group-by-app -bool false

# Don’t show Dashboard as a Space
defaults write com.apple.dock dashboard-in-overlay -bool true
#defaults write com.apple.dock dashboard-in-overlay -bool true

# Remove the auto-hiding Dock delay
defaults write com.apple.Dock autohide-delay -float 0
@@ -407,8 +410,8 @@ defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Fi
###############################################################################

# Disable send and reply animations in Mail.app
defaults write com.apple.mail DisableReplyAnimations -bool true
defaults write com.apple.mail DisableSendAnimations -bool true
#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
@@ -424,10 +427,10 @@ defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
defaults write com.apple.terminal StringEncodings -array 4

# Use a modified version of the Pro theme by default in Terminal.app
open "$HOME/init/Mathias.terminal"
open "$HOME/init/KTE.terminal"
sleep 1 # Wait a bit to make sure the theme is loaded
defaults write com.apple.terminal "Default Window Settings" -string "Mathias"
defaults write com.apple.terminal "Startup Window Settings" -string "Mathias"
defaults write com.apple.terminal "Default Window Settings" -string "KTE"
defaults write com.apple.terminal "Startup Window Settings" -string "KTE"

# Enable “focus follows mouse” for Terminal.app and all X11 apps
# i.e. hover over a window and start typing in it without clicking first
@@ -442,7 +445,7 @@ defaults write com.apple.terminal "Startup Window Settings" -string "Mathias"
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true

# Disable local Time Machine backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
#hash tmutil &> /dev/null && sudo tmutil disablelocal

###############################################################################
# Address Book, Dashboard, iCal, TextEdit, and Disk Utility #
Loading