]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Changes to ackrc, zshrc & agignore: better search
authorBen Beltran <redacted>
Thu, 22 Aug 2013 14:35:23 +0000 (09:35 -0500)
committerBen Beltran <redacted>
Thu, 22 Aug 2013 14:35:23 +0000 (09:35 -0500)
ackrc
agignore [new file with mode: 0644]
zshrc

diff --git a/ackrc b/ackrc
index 40587f7d9ffbd64ee7548d810a70f9cc01303bb9..6b7d5e94af97aa4c15232f8e7d8c38fcf7c2f254 100644 (file)
--- a/ackrc
+++ b/ackrc
@@ -7,6 +7,8 @@
 --ignore-dir=tmp
 --ignore-dir=doc
 --ignore-dir=public/system
+--ignore-dir=asset_packages
+--ignore-dir=node_modules
 --sort-files
 --color
 --follow
diff --git a/agignore b/agignore
new file mode 100644 (file)
index 0000000..ccee019
--- /dev/null
+++ b/agignore
@@ -0,0 +1,4 @@
+tmp
+public/system
+asset_packages
+node_modules
diff --git a/zshrc b/zshrc
index ed8303e78ef28006c08db4bc690658d523b9b313..e05c2847c6b2fe2acb88aae00d911720fc815740 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -52,7 +52,7 @@ echo -e "\033[m"
 alias dwarffortress="/Applications/Dwarf\ Fortress/df"
 alias ls="ls -FG"
 alias rspec="rspec --color"
-alias nitro="server.js"
+alias nitro="nitrogen.js"
 
 #Screeninator and RVM scripts
 [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
@@ -61,6 +61,10 @@ alias nitro="server.js"
 bindkey -v
 bindkey '^R' history-incremental-pattern-search-backward
 
+ggb() {
+    git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done
+}
+
 #
 # End of the custom things from my bash profile.
 # There's probably a more "zsh-ish" way of doing these, but I have no time.