Tue Jan 22 14:03:40 AST 2008  Nick Pilon <[EMAIL PROTECTED]>
  * This patch fixes a problem where prompt_pwd was printing the full path 
twice under OS X and probably BSDs. (Which, needless to say, made for very long 
prompts) The problem was that (Free?)BSD sed and GNU sed handle ? differently. 
For BSD sed, ? is not special unless the -E flag is specified. The {0,1} syntax 
should work the same way in both.
New patches:

[This patch fixes a problem where prompt_pwd was printing the full path twice under OS X and probably BSDs. (Which, needless to say, made for very long prompts) The problem was that (Free?)BSD sed and GNU sed handle ? differently. For BSD sed, ? is not special unless the -E flag is specified. The {0,1} syntax should work the same way in both.
Nick Pilon <[EMAIL PROTECTED]>**20080122180340] {
hunk ./share/functions/prompt_pwd.fish 5
-			printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|" -e 's-/\(\.\?[^/]\)\([^/]*\)-/\1-g')
-			echo $PWD|sed -e 's-.*/\.\?[^/]\([^/]*$\)-\1-'
+			printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|" -e 's-/\(\.\{0,1\}[^/]\)\([^/]*\)-/\1-g')
+			echo $PWD|sed -e 's-.*/\.\{0,1\}[^/]\([^/]*$\)-\1-'
hunk ./share/functions/prompt_pwd.fish 18
-			printf "%s" (echo $PWD|sed -e "s|^$HOME|~|" -e 's-/\(\.\?[^/]\)\([^/]*\)-/\1-g')
-			echo $PWD|sed -n -e 's-.*/\.\?.\([^/]*\)-\1-p'
+			printf "%s" (echo $PWD|sed -e "s|^$HOME|~|" -e 's-/\(\.\{0,1\}[^/]\)\([^/]*\)-/\1-g')
+			echo $PWD|sed -n -e 's-.*/\.\{0,1}.\([^/]*\)-\1-p'
}

Context:

[Add completions for m4
[EMAIL PROTECTED] 
[Add completions for badblocks
[EMAIL PROTECTED] 
[Add completions for Battle of Wesnoth
[EMAIL PROTECTED] 
[Improve documentaion for bind builtin, clarify how to specify key sequences.
[EMAIL PROTECTED] 
[Add simple git completions by Diggory Hardy
[EMAIL PROTECTED] 
[Fix spelling in docs and add a help page for the funced builtin. These changes where suggested by Emanuele Rusconi.
[EMAIL PROTECTED] 
[Search for command-not-found in PATH on startup, since older implementations place it there
[EMAIL PROTECTED] 
[In prompt_pwd, if a directory name starts with a dot, include first two characters. This patch was written by Denilson F. de Sá
[EMAIL PROTECTED] 
[Remove useless stray argument in function call
[EMAIL PROTECTED] 
[Correct completions for the function builtin
[EMAIL PROTECTED] 
[Add more documentation on events
[EMAIL PROTECTED] 
[Fix minor bug, PWD was incorrectly set on startup
[EMAIL PROTECTED] 
[Drop vim feature of only completing text and gzip files
[EMAIL PROTECTED] 
[Improve code comment
[EMAIL PROTECTED] 
[Add an extra input validation check
[EMAIL PROTECTED] 
[Improve error messages on failed execve calls a bit more
[EMAIL PROTECTED] 
[Oops. Made a minor but important typo in previous cleanup patch. :-(
[EMAIL PROTECTED] 
[Drop minor typo, add a few code comments
[EMAIL PROTECTED] 
[Add support for the Ubuntu 'command-no-found' handler, which suggests a package to install in order to get a command.
[EMAIL PROTECTED] 
[Handle case insensitive completions of variables better
[EMAIL PROTECTED] 
[The max size of the string buffer was too small. Push it up a bit.
[EMAIL PROTECTED] 
[Fixed various spelling errors.
James Vega <[EMAIL PROTECTED]>**20080113200151] 
[Add canse insensitive tilde completion
[EMAIL PROTECTED] 
[Improve Doxygen documentation generation a bit
[EMAIL PROTECTED] 
[Make sure fish_indent handles io erros
[EMAIL PROTECTED] 
[Add lots of new code comments.
[EMAIL PROTECTED] 
[TAG 1.23.0
[EMAIL PROTECTED] 
Patch bundle hash:
3ff8eab727b0bf80c5b49ed741aa30493aedcc6d
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to