Re: [PATCH] Simple update to bash completions to prevent unbound variable errors.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Pavlic
Date: Monday, January 12, 2009 - 9:50 pm

> Without the modeline, the vim I was using didn't set ft=sh. It seemed

NOTE: On my system, I save git-completion.bash to .git_bash_completion. 
Because of that, Vim can't ftdetect off of the file name. The modeline 
allows ft=sh even when you don't end in .sh or .bash.

An alternative (to a Vim modeline) is to put

#!bash

at the top of the script. That would do the same thing as the modeline 
(even though it would never actually get used by the sourced "script").

--Ted

-- 
Ted Pavlic <ted@tedpavlic.com>

   Please visit my ALS association page:
         http://web.alsa.org/goto/tedpavlic
   My family appreciates your support in the fight to defeat ALS.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Simple update to bash completions to prevent u ..., Boyd Stephen Smith Jr., (Mon Jan 12, 8:56 pm)
Re: [PATCH] Simple update to bash completions to prevent u ..., Ted Pavlic, (Mon Jan 12, 9:50 pm)