changeset 310:a6cd6900419e

whview and whemacs use realwhich
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 17 May 2013 02:31:37 -0700
parents 6095d439d1f2
children a25eb7e42889
files .bashrc
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Thu May 16 23:27:18 2013 -0700
+++ b/.bashrc	Fri May 17 02:31:37 2013 -0700
@@ -283,16 +283,6 @@
 
 ### `which` commands
 
-whview() {
-    # which view
-    less `which $@`
-}
-
-whemacs() {
-    # which emacs
-    emacs -nw `which $@`
-}
-
 realwhich() {
     # which -> real paths
     command which $@ | while read line
@@ -301,6 +291,16 @@
     done
 }
 
+whview() {
+    # which view
+    less `realwhich $@`
+}
+
+whemacs() {
+    # which emacs
+    emacs -nw `realwhich $@`
+}
+
 ### functions for python
 
 pyfile() {