Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
cemo committed Jan 28, 2016
2 parents e07ccfb + e7ef66d commit 07307cf
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .bash_prompt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ prompt_git() {

[ -n "${s}" ] && s=" [${s}]";

echo -e "${1}${branchName}${blue}${s}";
echo -e "${1}${branchName}${2}${s}";
else
return;
fi;
Expand Down Expand Up @@ -111,7 +111,7 @@ PS1+="\[${white}\] at ";
PS1+="\[${hostStyle}\]\h"; # host
PS1+="\[${white}\] in ";
PS1+="\[${green}\]\w"; # working directory
PS1+="\$(prompt_git \"${white} on ${violet}\")"; # Git repository details
PS1+="\$(prompt_git \"\[${white}\] on \[${violet}\]\" \"\[${blue}\]\")"; # Git repository details
PS1+="\n";
PS1+="\[${white}\]\$ \[${reset}\]"; # `$` (and reset color)
export PS1;
Expand Down
3 changes: 3 additions & 0 deletions .exports
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export NODE_REPL_HISTORY_SIZE='32768';
# Use sloppy mode by default, matching web browsers.
export NODE_REPL_MODE='sloppy';

# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING='UTF-8';

# Increase Bash history size. Allow 32³ entries; the default is 500.
export HISTSIZE='32768';
export HISTFILESIZE="${HISTSIZE}";
Expand Down
12 changes: 8 additions & 4 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@
# List contributors with number of commits
contributors = shortlog --summary --numbered

# Merge GitHub pull request on top of the `master` branch
# Merge GitHub pull request on top of the current branch or,
# if a branch name is specified, on top of the specified branch
mpr = "!f() { \
declare currentBranch=\"$(git symbolic-ref --short HEAD)\"; \
declare branch=\"${2:-$currentBranch}\"; \
if [ $(printf \"%s\" \"$1\" | grep '^[0-9]\\+$' > /dev/null; printf $?) -eq 0 ]; then \
git fetch ${2:-origin} refs/pull/$1/head:pr/$1 && \
git rebase master pr/$1 && \
git checkout master && \
git fetch origin refs/pull/$1/head:pr/$1 && \
git checkout -B $branch && \
git rebase $branch pr/$1 && \
git checkout -B $branch && \
git merge pr/$1 && \
git branch -D pr/$1 && \
git commit --amend -m \"$(git log -1 --pretty=%B)\n\nCloses #$1.\"; \
Expand Down
8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 26 additions & 15 deletions .osx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Possible values: `WhenScrolling`, `Automatic` and `Always`

# Disable the over-the-top focus ring animation
defaults write NSGlobalDomain NSUseAnimatedFocusRing -bool false

# Disable smooth scrolling
# (Uncomment if you’re on an older Mac that messes up the animation)
#defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false
Expand Down Expand Up @@ -314,9 +317,6 @@ defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false

# Empty Trash securely by default
defaults write com.apple.finder EmptyTrashSecurely -bool true

# Enable AirDrop over Ethernet and on unsupported Macs running Lion
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

Expand Down Expand Up @@ -364,6 +364,9 @@ defaults write com.apple.dock show-process-indicators -bool true
# the Dock to launch apps.
#defaults write com.apple.dock persistent-apps -array

# Show only open applications in the Dock
#defaults write com.apple.dock static-only -bool true

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

Expand Down Expand Up @@ -400,8 +403,9 @@ defaults write com.apple.dock showhidden -bool true
# Reset Launchpad, but keep the desktop wallpaper intact
find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete

# Add iOS Simulator to Launchpad
sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app" "/Applications/iOS Simulator.app"
# Add iOS & Watch Simulator to Launchpad
sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app" "/Applications/Simulator.app"
sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/Simulator (Watch).app" "/Applications/Simulator (Watch).app"

# Add a spacer to the left side of the Dock (where the applications are)
#defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
Expand Down Expand Up @@ -480,13 +484,6 @@ defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebK
# Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

###############################################################################
# iTunes #
###############################################################################

# Disable automatic device syncing
defaults write com.apple.iTunes dontAutomaticallySyncIPods -bool true

###############################################################################
# Mail #
###############################################################################
Expand Down Expand Up @@ -685,6 +682,13 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
# Enable Debug Menu in the Mac App Store
defaults write com.apple.appstore ShowDebugMenu -bool true

###############################################################################
# Photos #
###############################################################################

# Prevent Photos from opening automatically when devices are plugged in
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true

###############################################################################
# Messages #
###############################################################################
Expand Down Expand Up @@ -798,6 +802,13 @@ defaults write com.twitter.twitter-mac ShowFullNames -bool true
# Hide the app in the background if it’s not the front-most window
defaults write com.twitter.twitter-mac HideInBackground -bool true

###############################################################################
# Tweetbot.app #
###############################################################################

# Bypass the annoyingly slow t.co URL shortener
defaults write com.tapbots.TweetbotMac OpenURLsDirectly -bool true

###############################################################################
# Spectacle.app #
###############################################################################
Expand Down Expand Up @@ -831,9 +842,9 @@ defaults write com.divisiblebyzero.Spectacle UndoLastMove -data 62706c6973743030
###############################################################################

for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
"Dock" "Finder" "Google Chrome" "Google Chrome Canary" "iTunes" "Mail" \
"Messages" "Opera" "Safari" "SizeUp" "Spectacle" "SystemUIServer" \
"Terminal" "Transmission" "Twitter" "iCal"; do
"Dock" "Finder" "Google Chrome" "Google Chrome Canary" "Mail" "Messages" \
"Opera" "Photos" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
"Transmission" "Tweetbot" "Twitter" "iCal"; do
killall "${app}" &> /dev/null
done
echo "Done. Note that some of these changes require a logout/restart to take effect."
2 changes: 1 addition & 1 deletion bin/httpcompression
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

declare -r -a CURL_DEFAULT_OPTIONS=(
--connect-timeout 30
--header "Accept-Encoding: gzip, deflate, sdch"
--header "Accept-Encoding: br, lzma, gzip, deflate, sdch"
--header "Cache-Control: no-cache" # Prevent intermediate proxies
# from caching the response

Expand Down
2 changes: 1 addition & 1 deletion brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ brew install vim --override-system-vi
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh
brew install homebrew/dupes/screen
# brew install homebrew/php/php55 --with-gmp
#brew install homebrew/php/php56 --with-gmp

# Install font tools.
# brew tap bramstein/webfonttools
Expand Down
9 changes: 9 additions & 0 deletions dotfiles.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

0 comments on commit 07307cf

Please sign in to comment.