Permalink
Browse files

fixing yadr variables

  • Loading branch information...
1 parent f5920d6 commit 131edba0650ec43651396bd3b02142485f7fc243 pmorgan committed Jul 22, 2014
Showing with 2 additions and 206 deletions.
  1. +0 −205 zsh/6V
  2. +1 −1 zsh/aliases.zsh
  3. +1 −0 zsh/zshrc
View
205 zsh/6V
@@ -1,205 +0,0 @@
-# ruby grep
-function rgrep() {
- find -L . -type f -name \*.rb -exec grep -n -i -H --color "$1" {} \;
-}
-
-# quick grep
-function qgrep() {
- find -L . -type f -exec grep -n -i -H --color "$1" {} \;
-}
-
-function efind() {
- find -L . -type f -iname "*.$1"
-}
-
-function efind0() {
- find -L . -type f -iname "*.$1" -print0
-}
-
-function efind1() {
- find -L . -type f -iname "*.$1" -maxdepth 1
-}
-
-function efind10() {
- find -L . -type f -iname "*.$1" -maxdepth 1 -print0
-}
-
-function qfind() {
- find -L . -type f -iname "*$1*"
-}
-
-function dfind() {
- find -L . -type d -iname "*$1*"
-}
-
-function qgfind() {
- find -L . -type f -iname "*$1*" -exec grep -n -i -H --color "$2" {} \;
-}
-
-function qfind0() {
- find -L . -type f -iname "*$1*" -print0
-}
-
-function qfind1() {
- find -L . -type f -iname "*$1*" -maxdepth 1
-}
-
-function qfind10() {
- find -L . -type f -iname "*$1*" -maxdepth 1 -print0
-}
-
-function mfind() {
- mdfind -name "$1"
-}
-
-function mgrep() {
- mdfind "$1"
-}
-
-function mfind1() {
- mdfind -onlyin . -name "$1"
-}
-
-function mgrep1() {
- mdfind -onlyin . "$1"
-}
-
-function emfind() {
- mdfind -name "\.$1"
-}
-
-function gs() {
- screencapture -i "$1.png"
-}
-
-function gsc() {
- if [ ! -d "$CUR/screenshots" ]; then
- mkdir -p "$CUR/screenshots"
- fi
- print $CUR/screenshots/$I.png
- screencapture -i "$CUR/screenshots/$1.png"
-}
-
-function routeadd() {
- route add -host 209.160.65.6 $1
- route add -host imap.gmail.com $1
- route add -host talk.google.com $1
- route add -host chat.facebook.com $1
- route add -host twitter.com $1
- route add -host 66.146.193.138 $1
-}
-
-#function routeclean() {
-# route delete 209.160.65.6
-# route delete imap.gmail.com
-# route delete talk.google.com
-# route delete chat.facebook.com
-# route delete twitter.com
-#}
-
-function routeclean() {
- netstat -rn -f inet | grep -i $1 | cut -d' ' -f 1 | while read foo; do route delete $foo; done;
-}
-
-function routetest() {
- echo "==daedalus=="
- route get 209.160.65.6 | grep -i gateway
- echo "==imap.gmail.com=="
- route get imap.gmail.com | grep -i gateway
- echo "==talk.google.com=="
- route get talk.google.com | grep -i gateway
- echo "==chat.facebook.com=="
- route get chat.facebook.com | grep -i gateway
- echo "==itunes.apple.com=="
- route get itunes.apple.com | grep -i gateway
- echo "==ax.itunes.apple.com=="
- route get ax.itunes.apple.com | grep -i gateway
- echo "==albert.apple.com=="
- route get albert.apple.com | grep -i gateway
- echo "==twitter.com=="
- route get twitter.com | grep -i gateway
-}
-
-function rgem() {
- rvm jruby-1.5.2,1.8.7,1.9.2 gem install $1
-}
-
-#function rgem-shire() {
-# rvm jruby-1.5.2,1.8.7,1.9.2 gem install -p http://proxycacheF.hewitt.com:3128 $1
-#}
-
-function whog() {
- whois -h whois.geektools.com "$1"
-}
-
-function whoa() {
- whois -h whois.arin.net "$1"
-}
-
-function stelnet() {
- openssl s_client -connect $1:$2
-}
-
-function numbers() {
- open -a "Numbers" $1
-}
-
-# quick port scan - ip port
-function qp() {
- nmap --min-rate=2000 -p$2 $1 -oG temp && cat temp | ruby ~/bin/gnmap-ng.rb
-}
-
-function rbjsonpp() {
- pbpaste | ruby -e "require 'rubygems';require 'JSON'; jj JSON.parse(STDIN.gets)"
-}
-
-function rbxmlpp() {
- pbpaste | ruby -e "require 'rubygems'; require 'rexml/document'; doc = REXML::Document.new(STDIN.gets); doc.write(STDOUT,1)"
-}
-
-function jsb() {
- pbpaste | js-beautify -i
-}
-
-function addpaths {
- for i in $*; do
- i=${~i}
- if [ -d "$i" ]; then
- notinpath $i && path+=$i
- fi
- done
-}
-
-function delpaths {
- for i in $*; do
- i=${~i}
- PATH="$(echo "$PATH" | tr ':' '\n' | grep -v "$i" | tr '\n' ':')"
- done
-}
-
-function openff {
- open -a "Firefox" $*
-}
-
-function mdir {
- mkdir -p $1
- cd $1
-}
-
-function ccal {
- cal=`cal`; today=`date "+%e"`; echo -en "${cal/${today}/\033[1;32m${today}\033[0m}"
-}
-
-function test_web {
- for i in $*; do
- curl -sL -w "%{http_code} %{url_effective}\\n" "$i" -o /dev/null
- done
-}
-
-function qssh {
- sshpass -p '( sh Administrator@$1
-}
-
-function q4ssh {
- sshpass -p '' ssh Administrator@$1
-}
View
2 zsh/aliases.zsh
@@ -1,7 +1,7 @@
# Aliases in this file are bash and zsh compatible
# Don't change. The following determines where YADR is installed.
-yadr=`find -L ~ -maxdepth 2 -type f -name .yadr | head | sed 's:\.yadr\/::'`
+yadr=`find -L ~ -maxdepth 2 -type f -name .yadr | head | sed 's/\.yadr//'`
# YADR support
alias yav='yadr vim-add-plugin'
View
1 zsh/zshrc
@@ -16,6 +16,7 @@ export yadr
#yadr="/Users/pmorgan/.dotfiles"
# Source oh-my-zsh if it is installed.
+# This shouldn't run
if [[ -d $HOME/.oh-my-zsh ]]; then
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

0 comments on commit 131edba

Please sign in to comment.