a2125cb20c54

Update to mention the new collapse_pwd method.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 01 Feb 2010 18:49:04 -0500
parents f6a75cd5edc6
children 938cf9c8cdb8
branches/tags (none)
files content/blog/2010/02/my-extravagant-zsh-prompt.html

Changes

--- a/content/blog/2010/02/my-extravagant-zsh-prompt.html	Mon Feb 01 18:41:14 2010 -0500
+++ b/content/blog/2010/02/my-extravagant-zsh-prompt.html	Mon Feb 01 18:49:04 2010 -0500
@@ -171,6 +171,13 @@
     :::text
     in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}
 
+**UPDATE:** In a comment Juliano pointed out a better way to do this. I've
+gotten rid of the `collapse_pwd` function and put this into my `PROMPT`
+variable instead:
+
+    :::bash
+    ${PWD/#$HOME/~}
+
 My Right-Prompt: Battery Capacity
 ---------------------------------