Permalink
Browse files

Alias ack if ack-grep exists

  • Loading branch information...
1 parent 955b2b4 commit a9b3cfbad368ab7d46e2f693506b0e0915d090c8 @milagre committed Jul 15, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 .bash_aliases
View
@@ -1,3 +1,4 @@
+#!/bin/bash
# ~/.bash_aliases
alias grep='grep --color=auto'
@@ -7,6 +8,9 @@ alias ls='ls -AlF --color=auto'
alias l='ls'
alias v='vim'
alias tf='tail -f'
+if command -v ack-grep >/dev/null; then
+ alias ack='ack-grep'
+fi
# Enables alias expansion while using sudo
alias sudo='sudo '

0 comments on commit a9b3cfb

Please sign in to comment.