From 490cedf3a91a5dd5b8409563bd56493c893ce43d Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 3 Oct 2014 12:48:09 +0900 Subject: [PATCH] Auto commit by The Sugar System. --- dot-files/_zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dot-files/_zshrc b/dot-files/_zshrc index 50e0f91..13e764d 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -127,6 +127,10 @@ function print_directory_info() { fi } +function nfgrep() { + fgrep --with-filename --line-number --context=1 --colour=always "$@" | $PAGER +} + function ppgrep() { local -a percol_opts @@ -194,15 +198,15 @@ alias p='pushd' alias o='popd' alias d='dirs' alias df='df -h' -alias ed='ed -p "ed> "' alias du='du -k' -alias nc='nc -vv' +alias ed='ed -p "ed> "' +alias man="LANG=C man" alias mwget="wget --user-agent='Mozilla/1.4b'" +alias nc='nc -vv' +alias pkgsrc="pushd /usr/pkgsrc" alias pstow="pushd /usr/local/stow" alias w3m="w3m -O UTF-8" alias w3mb="w3m -O UTF-8 -B" -alias pkgsrc="pushd /usr/pkgsrc" -alias man="LANG=C man" alias aria-emacs="ssh -f -X admin@aria.cielonegro.org emacsclient -c" alias pho-dev-boinc="ssh -f -X pho@pho.dev.office.ymir.co.jp env LANG=C /home/pho/var/BOINC/run_manager" -- 2.40.0