[sf-perl] Presentation Suggestions

Quinn Weaver quinn at pgexperts.com
Tue Dec 20 00:25:18 PST 2011


On Dec 17, 2011, at 5:57 PM, Jeffrey Thalhammer wrote:

> Hi everyone-
> 
> 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:
> 
> Screenshots of Finder (I use a Mac).
> Screenshots of "ls" commands in a terminal.
> 
> 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.
> 
> Have you seen or used any other techniques that you like?

On Sat, Dec 17, 2011 at 5:57 PM, Jeffrey Thalhammer <jeff at imaginative-software.com> wrote:
> Hi everyone-
>
> 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:
>
> Screenshots of Finder (I use a Mac).
> Screenshots of "ls" commands in a terminal.

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'.

> And I think it is hard to convey the relationship between directories as you move from one directory to another.

You can put the full path in your bash prompt:

export PS1="\w\\$ "

I do this in my prompt (along with some other info).

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.

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."

export PS1="\[\e[34;m\]\w\$ \[\e[0m\]

--
Quinn Weaver
PostgreSQL Experts, Inc.
http://pgexperts.com/
1-888-743-9778 (my extension: 510)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20111220/09cd5605/attachment.html>


More information about the SanFrancisco-pm mailing list