3,715 reputation
1123
bio website ithaca.arpinum.org
location New York, NY
age 46
visits member for 5 years, 1 month
seen Aug 14 at 23:40

Tinker, tailor, soldier, spy


Aug
24
comment Bash prompt: how to have the initials of directory path
@Hamish No, that's incorrect. This changes as you cd. I'm using it now. (And that's not a Perl thing. It has to do with how PS1 works. You can have dynamic information in there in a function via \$(function).
Aug
24
revised Bash prompt: how to have the initials of directory path
added 243 characters in body
Aug
24
comment Bash prompt: how to have the initials of directory path
Fair enough. I posted an answer below, based on that thread.
Aug
24
answered Bash prompt: how to have the initials of directory path
Aug
24
comment Bash prompt: how to have the initials of directory path
This is a great question, but it's also an exact duplicate of a question (already answered) on Stack Overflow: stackoverflow.com/questions/1616678/bash-pwd-shortening
Aug
24
answered Copy list of files
Aug
24
comment Copy list of files
Let me get one thing clear: the list has all the file names on one line, separated only by a space? Or are the names each on a separate line?
Aug
24
revised Capture output of command in variable
added 201 characters in body
Aug
24
revised Capture output of command in variable
added 159 characters in body
Aug
24
revised Capture output of command in variable
added 6 characters in body
Aug
24
answered Capture output of command in variable
Aug
23
comment Snow Leopard hide scrollbar in terminal?
I don't know anything about Cocoa apps. Care to share where an application's NIB file would live? Thanks.
Aug
23
comment Snow Leopard hide scrollbar in terminal?
FYI: I've always wanted this myself, so I just took a quick look at the plist. No relevant option seems to be there.
Aug
21
comment Are the unix commands the same for Mac and Ubuntu?
@vy32 Depends on who you're distributing to. If you're writing tools for other developers, I disagree. And, frankly, if you're writing command-line tools of any sort, I'm not so sure I agree. All the people I know who use the command line regularly on OSX use one or another of these package managers.
Aug
21
comment Understanding pipe in bash
Apart from anything else, rm /usr/bin/gem is a terrible idea. Leave that gem (and the Ruby interpreter it goes with) alone and install your preferred Ruby interpreter (and gem) using rvm: rvm.beginrescueend.com
Aug
21
answered Are the unix commands the same for Mac and Ubuntu?
Aug
9
comment How to clear stale hashed search path in bash?
@grokus I'll vote it up, but you must promise to put the question back. Otherwise, this thread is getting awfully silly. (I currently have an answer in search of a question.) Also, can't you accept answers no matter what your point level is? (That gets you points as well.)
Aug
9
comment How to clear stale hashed search path in bash?
@grokus It's nice not to have to start a new shell - especially if you're logged in over ssh - but a new shell should do it.
Aug
9
comment Remove VIM search highlight
@scottl Fair enough (and good reminder that all commands have shortcuts), but I still like to map frequently used commands.
Aug
9
answered How to clear stale hashed search path in bash?