From 908a3733288f2d987b4f679d0b9a4304018c395a Mon Sep 17 00:00:00 2001 From: alexg0 Date: Mon, 30 Nov 2009 04:47:39 +0800 Subject: Fixed errors related to running git-prompt.sh in Emacs shell-mode, change prompt-char to '#' when root, allowed changing prompt-char (eg. $) when user. Added Emacs backup (*~) files as .gitignore. 1. tput colors was being concatinated to '0'. Inside emacs shell this is not valid, as `tput colors` is 0. 2. MC bug check was catching Emacs shell inferior mode. Now checking for $INSIDE_EMACS variable. 3. Defined $prompt_char variable and $root_prompt_char variable. Defaulting $root_prompt_char to '#'. Can just use \$, which automatically changes between '$' and '#', but that would change defalt behavior. 4. Fixed typo in a comment (cmd_cmd -> cwd_cmd). --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 2d19fc7..827d95c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ *.html + +# emacs backup and lock files +*~ +\#*\# -- cgit v1.2.3