I’m using Terminal.app on Mac OS10.6.3, with gnu screen and zsh.
What I want to do is, see pwd(or an URL) in Terminal.app and double click on it, and select the whole path, to copy and paste after that.
But what I get now is a single directory name, because ‘/’ is not treated as a word.
I found that iTerm has a setting to change it(iTerm -> Preferences -> Mouse -> Characters considered part of a word), but is there any way to do this on my environment?
Given the age of this question, you have probable found the answer elsewhere already, but if not, here’s how to do it in “newer” versions of Terminal (Leopard 10.5 and Snow Leopard 10.6)…
See also here.
Just to summarize:
to select a path or a URL: command–shift–
double-clickto select non-contiguous selections: command–
click-and-dragto select block regions: alt–
click-and-dragHope this helps.
Loads more useful keyboard shortcuts in this article.