Created
April 5, 2012 19:33
-
-
Save jgillman/2313464 to your computer and use it in GitHub Desktop.
Joel's files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ~="cd ~/" | |
alias ..="cd .." | |
alias la="ls -A" | |
alias ll="ls -lAhF" | |
alias screen="screen -d -R" | |
# Recursively delete `.DS_Store` files | |
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete" | |
# Enhanced WHOIS lookups | |
alias whois="whois -h whois-servers.net" | |
# Flush Directory Service cache | |
alias flush="dscacheutil -flushcache" | |
# ROT13-encode text. Works for decoding, too! ;) | |
alias rot13='tr a-zA-Z n-za-mN-ZA-M' | |
# Show/hide hidden files in Finder | |
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool true && killall Finder" | |
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false && killall Finder" | |
# Hide/show all desktop icons (useful when presenting) | |
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" | |
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" | |
# PlistBuddy alias, because sometimes `defaults` just doesn’t cut it | |
alias plistbuddy="/usr/libexec/PlistBuddy" | |
alias pass="apg -a 0 -n 10 -m 8 -x 14 -t" | |
alias vhosts="cd /private/etc/apache2/virtualhosts/" | |
alias top10="history|awk '{print $2}'|awk 'BEGIN {FS=\"|\"} {print $1}'|sort|uniq -c|sort -rn|head -10" | |
alias clera="echo 'Yes dear?'" | |
function cdl | |
{ | |
command cd $1 | |
command ls | |
} | |
export -f cdl | |
# 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 10'" | |
alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
echo $(__git_ps1) | |
} | |
PS1="\n$(tput setaf 6)[\h $(tput setaf 1)\W$(tput setaf 6)] \$(parse_git_branch) \n$(tput sgr0)\$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# Prompt | |
if [ -f ~/Dropbox/sync/.bash_prompt ]; then | |
. ~/Dropbox/sync/.bash_prompt | |
fi | |
# Aliases | |
if [ -f ~/Dropbox/sync/.bash_aliases ]; then | |
. ~/Dropbox/sync/.bash_aliases | |
fi | |
# Color | |
export CLICOLOR=true | |
export LSCOLORS="gxfxcxdxbxegedabagacad" | |
# Case-insensitive globbing (used in pathname expansion) | |
shopt -s nocaseglob | |
# Prefer US English and use UTF-8 | |
export LC_ALL="en_US.UTF-8" | |
export LANG="en_US" | |
# Double check Ctrl + D | |
export IGNOREEOF=1 | |
export DISPLAY=:0.0 | |
export MANPATH=/opt/local/man:$MANPATH | |
# Make vim the default editor | |
export EDITOR="vim" | |
# Don’t clear the screen after quitting a manual page | |
export MANPAGER="less -X" | |
# Make some commands not show up in history | |
export HISTIGNORE="ls:ls *:cd:cd -:pwd;exit:date:* --help" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Joel Gillman | |
email = joeltgillman@gmail.com | |
[core] | |
excludesfile = ~/Dropbox/sync/.gitignore | |
editor = "vim" | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
sp = stash pop | |
mylog = log --author=Joel | |
[branch] | |
autosetupmerge = true | |
[branch "master"] | |
mergeoptions = --no-ff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment