Date: Wed, 13 Oct 2010 05:20:08 GMT From: Anonymous <swell.k@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/151414: Add 'work' when WRKDIRPREFIX is used. Message-ID: <201010130520.o9D5K8Am008838@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/151414; it has been noted by GNATS. From: Anonymous <swell.k@gmail.com> To: David O'Brien <obrien@FreeBSD.org> Cc: bug-followup@FreeBSD.org Subject: Re: ports/151414: Add 'work' when WRKDIRPREFIX is used. Date: Wed, 13 Oct 2010 09:07:07 +0400 "David O'Brien" <obrien@FreeBSD.org> writes: > It can be a lot of typing to enter a ports's extracted directory > if WRKDIRPREFIX is used. In addition to the extra typing, one > must remember the value of WRKDIRPREFIX - which could be set > differently depending on where scratch space is available. FYI, you can also use shell aliases $ alias cdw='cd $(make -V WRKDIR)' /usr/ports/editors/vim $ cdw /tmp/usr/ports/editors/vim/work $ cd - /usr/ports/editors/vim $ or search through command history[1] for `cd $(make -V WRKDIR)' + return to origin directory via `cd' or `popd'. For example (zsh), $ setopt autopushd pushdminus $ cd category/port $ make patch $ cd $(make -V WRKSRC) $ ls $ cd path/to/blah $ ls $ editor sourcefile.c $ cd - $ diff path/to/blah/sourcefile.c{.bak,} >~-2/files/patch-sourcefile.c $ cd -2 $ make [1] either history-incremental-search-backward or history-search-backward
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010130520.o9D5K8Am008838>