Use non-dotfile filename convention

This commit is contained in:
Henrik Lissner 2013-03-03 08:48:43 -05:00
parent f20d48f785
commit 674c4177f0
6 changed files with 255 additions and 3 deletions

37
brew Executable file
View file

@ -0,0 +1,37 @@
#!/bin/bash
# Make sure were using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
echo "Dont forget to add $(brew --prefix coreutils)/libexec/gnubin to \$PATH."
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install wget with IRI support
brew install wget --enable-iri
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
brew tap josegonzalez/homebrew-php
# Install everything else
brew install ack
brew install git
brew install rename
brew install tree
# vim
brew install macvim
brew install php54 php54-imagick php54-mcrypt php54-xdebug readline
brew install node nginx ctags
# Remove outdated versions from the cellar
brew cleanup

80
gitconfig Normal file
View file

@ -0,0 +1,80 @@
[user]
name = Henrik Lissner
email = henrik@lissner.net
[alias]
# common commands
a = add
s = status -s
c = commit
ca = commit --amend
br = branch
cl = clone
co = checkout
co- = checkout --
# reset commands
r = reset
r1 = reset HEAD^ --soft
r2 = reset HEAD^^ --soft
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
# search commadns
f = "!git ls-files | grep -i"
grep = grep -Ii
lasttag = describe --tags --abbrev=0
# Diff commands
d = difftool
dl = "!git ll -1"
# Ways to show the log
l = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
# Ignoring files the elegant way
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
assumeall = "!git st -s | awk {'print $2'} | xargs git assume"
[core]
excludesfile = ~/.gitignore
quotepath = false
whitespace = trailing-space
[color]
ui = auto
[diff]
tool = gvimdiff
[difftool]
prompt = false
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[push]
default = simple
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"

24
gitignore Normal file
View file

@ -0,0 +1,24 @@
# Logs and databases #
######################
*.log
*.cache
# OS generated files #
######################
.DS_Store?
.DS_Store
thumbs.db
Icon?
Thumbs.db
# Code stuffs #
##############
.svn
.git
.swp
.*.swp
*~
.tags
tags
.sass-cache
tmp

View file

@ -15,6 +15,6 @@ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh |
# Create links
src=$(cd "$(dirname "$0")"; pwd)
ln -sf $src/.zshrc ~/.zshrc
ln -sf $src/.gitignore ~/.gitignore
ln -sf $src/.gitconfig ~/.gitconfig
ln -sf $src/zshrc ~/.zshrc
ln -sf $src/gitignore ~/.gitignore
ln -sf $src/gitconfig ~/.gitconfig

87
osx Executable file
View file

@ -0,0 +1,87 @@
#!/bin/bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# General UI/UX #
###############################################################################
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Set Help Viewer windows to non-floating mode
defaults write com.apple.helpviewer DevMode -bool true
# Restart automatically if the computer freezes
systemsetup -setrestartfreeze on
###############################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
###############################################################################
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0
# Use scroll gesture with the Ctrl (^) modifier key to zoom
defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool true
defaults write com.apple.universalaccess HIDScrollZoomModifierMask -int 262144
# Follow the keyboard focus while zoomed in
defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Disable Ctrl+click context menu for macvim
defaults write org.vim.MacVim MMTranslateCtrlClick 0
###############################################################################
# Screen #
###############################################################################
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Enable HiDPI display modes (requires restart)
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
###############################################################################
# Finder #
###############################################################################
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -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
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Show the ~/Library folder
chflags nohidden ~/Library

24
zshrc Normal file
View file

@ -0,0 +1,24 @@
# Init ZSH
ZSH=$HOME/.oh-my-zsh
plugins=(laravel ruby python brew)
source $ZSH/oh-my-zsh.sh
unsetopt correct_all
. ~/.zsh/paths
. ~/.zsh/aliases
. ~/.zsh/completion
. ~/.zsh/config
. ~/.zsh/prompt
. ~/.zsh/welcome
if [ -f ~/.localrc ]; then
. ~/.localrc
fi
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
PATH=$PATH:$HOME/.rvm/bin
#######################
# Prompt