# HG changeset patch # User Steve Losh # Date 1265068144 18000 # Node ID a2125cb20c5428ce4ff00a5f91e61ce53d186067 # Parent f6a75cd5edc620a426a59c494b15afbafaec884f Update to mention the new collapse_pwd method. diff -r f6a75cd5edc6 -r a2125cb20c54 content/blog/2010/02/my-extravagant-zsh-prompt.html --- 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 ---------------------------------