Skip to content
Browse files

latest

  • Loading branch information...
1 parent 0674588 commit 211b71d76f5a32ca86bf588d00e28e34410a9793 @manewitz committed Dec 5, 2012
Showing with 11 additions and 4 deletions.
  1. +10 −3 bash/aliases
  2. +1 −1 bash/env
View
13 bash/aliases
@@ -16,6 +16,7 @@ alias dot="ls -ld .*"
alias ea="mate ~/bin/dotfiles/bash"
alias h="history"
alias hack="history|ack"
+alias ip="curl http://automation.whatismyip.com/n09230945.asp"
alias m="mate"
alias ls="ls -h"
alias top="top -o cpu"
@@ -30,15 +31,21 @@ alias chrome="open /Applications/Google\ Chrome.app --args --allow-file-access-f
alias fix_vpn='sudo launchctl unload /System/Library/LaunchDaemons/com.apple.racoon.plist && sudo launchctl load /System/Library/LaunchDaemons/com.apple.racoon.plist'
alias fog='~/.rvm/gems/ruby-1.8.7-p334@test/gems/fog-1.1.2/bin/fog'
alias gs="git status"
+alias gdm="git diff|mate"
alias mongodb="mongod run --config /usr/local/Cellar/mongodb/1.8.3-x86_64/mongod.conf"
alias pg='ping google.com'
alias scp='noglob scp' # This allows correct zsh parsing of wildcard * characters in scp paths
alias tunes='lsof |grep iTunes |grep TCP'
-
# functions
function f() {/usr/bin/find . -name "*$@*"}
+function word() {/usr/bin/grep $@ /usr/share/dict/words }
+function not() {/usr/bin/grep -v $@ }
# print a numbered list to pipe into an editor
-function list() {
- ruby -e "list = *(1..$1); puts list * %Q{.\n} + '.' "
+function list() {ruby -e "list = *(1..$1); puts list * %Q{. \n} + '. ' "}
+
+function swap()
+{
+ tmpfile=$(mktemp $(dirname "$1")/XXXXXX)
+ mv "$1" "$tmpfile" && mv "$2" "$1" && mv "$tmpfile" "$2"
}
View
2 bash/env
@@ -1,4 +1,4 @@
# added by MacPorts
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export EDITOR="$HOME/bin/mate"
-export PATH="~/bin:$PATH"
+export PATH="~/bin:$PATH:$HOME/.rvm/bin"

0 comments on commit 211b71d

Please sign in to comment.
Something went wrong with that request. Please try again.