changeset 63:b7814634220a

[bash] branch merge, added EDITOR change to vim when detected.
author Edho Prima Arief <me@myconan.net>
date Sun, 08 May 2011 09:43:58 +0700
parents 81d132d8c757 (diff) 996aa2f81721 (current diff)
children 3cd3f31d8a82
files bash
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Fri May 06 03:15:24 2011 +0700
+++ b/bash	Sun May 08 09:43:58 2011 +0700
@@ -63,5 +63,8 @@
   ;;
 esac
 
-command -v vim > /dev/null 2>&1 && alias vi=vim
+if command -v vim > /dev/null 2>&1; then
+  alias vi=vim
+  export EDITOR=vim
+fi
 [ -f .ecos_bash.after ] && . .ecos_bash.after
--- a/inputrc	Fri May 06 03:15:24 2011 +0700
+++ b/inputrc	Sun May 08 09:43:58 2011 +0700
@@ -24,6 +24,9 @@
 #Up/Down
 "\e[A": history-search-backward
 "\e[B": history-search-forward
+#GNOME Terminal
+"\eOA": history-search-backward
+"\eOB": history-search-forward
 
 #Misc
 "\C-w": backward-kill-word