From 876e8bb996831abbbd84d30cded89b1408fd74f0 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 17 Mar 2013 01:40:47 -0700 Subject: [PATCH] Updated aliases for tmux, got rid of some more defaults. --- .aliases | 4 +++- .bash_profile | 4 ++-- .osx | 29 +++++++---------------------- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/.aliases b/.aliases index c35657b0..d0d81370 100644 --- a/.aliases +++ b/.aliases @@ -129,4 +129,6 @@ 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'" \ No newline at end of file +alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'" + +alias tmux="tmux -2" \ No newline at end of file diff --git a/.bash_profile b/.bash_profile index 7eacfc8e..73ee3333 100644 --- a/.bash_profile +++ b/.bash_profile @@ -4,7 +4,7 @@ export PATH="$HOME/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. -for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do +for file in ~/.{path,bash_prompt,exports,shared_exports,aliases,functions,extra}; do [ -r "$file" ] && source "$file" done unset file @@ -36,4 +36,4 @@ complete -W "NSGlobalDomain" defaults complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall # If possible, add tab completion for many more commands -[ -f /etc/bash_completion ] && source /etc/bash_completion \ No newline at end of file +[ -f /etc/bash_completion ] && source /etc/bash_completion diff --git a/.osx b/.osx index 6103e6e7..c07fa371 100755 --- a/.osx +++ b/.osx @@ -13,16 +13,16 @@ 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 "IvanMalison" +sudo scutil --set HostName "IvanMalison" +sudo scutil --set LocalHostName "IvanMalison" +sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "IvanMalison" # Menu bar: disable transparency defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false # Menu bar: show remaining battery time (on pre-10.8); hide percentage -defaults write com.apple.menuextra.battery ShowPercent -string "NO" +defaults write com.apple.menuextra.battery ShowPercent -string "YES" defaults write com.apple.menuextra.battery ShowTime -string "YES" # Menu bar: hide the useless Time Machine and Volume icons @@ -31,10 +31,6 @@ defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreS # Always show scrollbars defaults write NSGlobalDomain AppleShowScrollBars -string "Always" -# Disable smooth scrolling -# (Uncomment if you’re on an older Mac that messes up the animation) -#defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false - # Disable opening and closing window animations defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false @@ -72,9 +68,6 @@ defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true # Set Help Viewer windows to non-floating mode defaults write com.apple.helpviewer DevMode -bool true -# Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo) -# Commented out, as this is known to cause problems when saving files in -# Adobe Illustrator CS5 :( #echo "0x08000100:0" > ~/.CFUserTextEncoding # Reveal IP address, hostname, OS version, etc. when clicking the clock @@ -99,12 +92,6 @@ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 -# Trackpad: map bottom right corner to right-click -defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 -defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true -defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 -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 @@ -133,7 +120,7 @@ defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false # Set a blazingly fast keyboard repeat rate -defaults write NSGlobalDomain KeyRepeat -int 0 +defaults write NSGlobalDomain KeyRepeat -int 1 # Automatically illuminate built-in MacBook keyboard in low light defaults write com.apple.BezelServices kDim -bool true @@ -290,7 +277,7 @@ defaults write com.apple.dock show-process-indicators -bool true # Wipe all (default) app icons from the Dock # This is only really useful when setting up a new Mac, or if you don’t use # the Dock to launch apps. -#defaults write com.apple.dock persistent-apps -array +# defaults write com.apple.dock persistent-apps -array # Don’t animate opening applications from the Dock defaults write com.apple.dock launchanim -bool false @@ -307,8 +294,6 @@ 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 -# Remove the animation when hiding/showing the Dock -defaults write com.apple.dock autohide-time-modifier -float 0 # Enable the 2D Dock #defaults write com.apple.dock no-glass -bool true