* [9fans] it's the small things ... @ 2013-10-10 18:10 erik quanstrom 2013-10-11 16:24 ` BurnZeZ 0 siblings, 1 reply; 3+ messages in thread From: erik quanstrom @ 2013-10-10 18:10 UTC (permalink / raw) To: 9fans i feel rather dumb for not thing of this until now. it's been a constant annoyance that cd in scripts screws up plumbing. here's a fairly fool-proof solution. unfortunately if you like your acme tag jumping like a jack rabbit with its tail on fire, you may be bored during compiles. :-) fn cd {flag i && builtin cd $* && awd} - erik ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] it's the small things ... 2013-10-10 18:10 [9fans] it's the small things erik quanstrom @ 2013-10-11 16:24 ` BurnZeZ 2013-10-11 17:01 ` Matthew Veety 0 siblings, 1 reply; 3+ messages in thread From: BurnZeZ @ 2013-10-11 16:24 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 258 bytes --] It's funny how small tricks like that can make things so much easier. Here's a script to compare your $home/lib/profile with those in sources. I'm always finding cool tricks doing this. It writes to /tmp/lsr, so I hope it's nothing important. ◔ ◡ ◔ [-- Attachment #2: cmpprof --] [-- Type: text/plain, Size: 205 bytes --] #!/bin/rc -e rfork n 9fs sources cd /n/sources if(! test -s /tmp/lsr) fcp lsr /tmp/lsr acme $home/lib/profile <{awk '{print $1}' /tmp/lsr | grep '^\./contrib.*/profile$' | sed 's/^\./\/n\/sources/'} ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] it's the small things ... 2013-10-11 16:24 ` BurnZeZ @ 2013-10-11 17:01 ` Matthew Veety 0 siblings, 0 replies; 3+ messages in thread From: Matthew Veety @ 2013-10-11 17:01 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs That's my favorite thing about Plan 9. It is simple and lets you do little clever things to make your life better. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-11 17:01 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-10 18:10 [9fans] it's the small things erik quanstrom 2013-10-11 16:24 ` BurnZeZ 2013-10-11 17:01 ` Matthew Veety
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).