From 74105e75bf30550a124ead88e4c0f913521d2837 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 18 Jun 2013 16:49:18 +0900 Subject: [PATCH] fixes for windows --- bashrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index 0e62117..46e66ec 100755 --- a/bashrc +++ b/bashrc @@ -266,7 +266,6 @@ if iscygwin; then null type windate || \ alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'" alias cygsu="cygstart /cygwinsetup.exe" - alias emacs="CYGWIN=tty emacs -nw" alias ls="ls -CFG $(iswindows || test "$TERM" = dumb || echo --color=auto)" fi @@ -318,10 +317,10 @@ s(){ if git rev-parse --git-dir >/dev/null 2>&1 then git grep -n "$@" - elif which ag >/dev/null + elif which ag >/dev/null 2>&1 then ag --pager="$PAGER" "$@" - elif which ack >/dev/null + elif which ack >/dev/null 2>&1 then ack --pager="$PAGER" "$@" else