Permalink
Browse files

More shell speed improvements.

Only set EDITOR and PAGER if not set already.
  • Loading branch information...
docwhat committed Oct 1, 2011
1 parent 6a37698 commit 2fd048caeef6e3ab9377a0212c6d9dd0686bd7c0
View
0 shell-common/.shell/00paths.zsh 100755 → 100644
No changes.
@@ -1,12 +0,0 @@
-if [ -z "${DISPLAY}" ]; then
- EDITOR=$(findapp emacs vim)
-else
- EDITOR=$(findapp dtemacs emacsclient emacs vim)
-fi
-if [ -n "${EDITOR}" ]; then
- export EDITOR
-fi
-
-# Local Variables:
-# mode: sh
-# End:
@@ -1,2 +0,0 @@
-
-export PAGER=$(findapp less most more)
@@ -0,0 +1,7 @@
+if [ -n "${EDITOR}" ]; then
+ if [ -z "${DISPLAY}" ]; then
+ export EDITOR=$(findapp emacs vim)
+ else
+ export EDITOR=$(findapp dtemacs emacsclient emacs vim)
+ fi
+fi
@@ -0,0 +1,3 @@
+if [ -n "${PAGER}" ]; then
+ export PAGER=$(findapp less most more)
+fi

0 comments on commit 2fd048c

Please sign in to comment.