<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 17, 2011, at 5:57 PM, Jeffrey Thalhammer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi everyone-<br><br>I'm working on a technical presentation that involves looking at a lot of directory structures.  Some techniques I've used in the past are:<br><br>Screenshots of Finder (I use a Mac).<br>Screenshots of "ls" commands in a terminal.<br><br>Both of these are adequate, but not very exciting.  And I think it is hard to convey the relationship between directories as you move from one directory to another.<br><br>Have you seen or used any other techniques that you like?<br></div></blockquote><div><br></div><div><div>On Sat, Dec 17, 2011 at 5:57 PM, Jeffrey Thalhammer <<a href="mailto:jeff@imaginative-software.com">jeff@imaginative-software.com</a>> wrote:</div><div>> Hi everyone-</div><div>></div><div>> I'm working on a technical presentation that involves looking at a lot of directory structures.  Some techniques I've used in the past are:</div><div>></div><div>> Screenshots of Finder (I use a Mac).</div><div>> Screenshots of "ls" commands in a terminal.</div><div><br></div><div>Maybe I'm an outlier, but I really like the output of find(1), for hierarchical directory structures with mangeable numbers of files. In my interactive shell use, I tend to do 'find .' instead of 'ls -lr'.</div><div><br></div><div>> And I think it is hard to convey the relationship between directories as you move from one directory to another.</div><div><br></div><div>You can put the full path in your bash prompt:</div><div><br></div><div>export PS1="\w\\$ "</div><div><br></div><div>I do this in my prompt (along with some other info).</div><div><br></div><div>If you do this, it's helpful to use ANSI color codes to make your prompt visually distinct from command output. But Terminal.app's ANSI support is broken, so, if you're on a Mac, you have to go to the trouble of downloading and configuring something else. I use iTerm2, which works great.</div><div><br></div><div>Here's an example. It's the same prompt as above, in a sort of cobalt blue. As you might guess, the part before the "\w\$ " is ANSIese for "be blue now" and the part after it is ANSIese for "stop being blue."</div><div><br></div><div>export PS1="\[\e[34;m\]\w\$ \[\e[0m\]</div><div><br></div><div>--</div></div></div><div><div><div>Quinn Weaver</div><div>PostgreSQL Experts, Inc.</div><div><a href="http://pgexperts.com/">http://pgexperts.com/</a></div><div>1-888-743-9778 (my extension: 510)</div></div><div><br></div></div></body></html>