9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Sorace <a@9srv.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Trying to override 'cd' command
Date: Fri, 12 Jun 2015 17:50:00 -0400	[thread overview]
Message-ID: <A06F4E38-3C4B-4643-8FB2-B7E77D863874@9srv.net> (raw)
In-Reply-To: <CAO41-mPDBZh6WThoem2Ax_c7kxX5HYbkV0nr6ZJaCDEr6+ahZw@mail.gmail.com>

It works:

	: root; fn cd {builtin cd $* ; prompt=(': '`{pwd}^'; ' '	')}
	: root; cd
	: /usr/a; cd /tmp
	: /tmp; 

If you’re still having trouble, paste a transcript like that, so we can see what’s going on.

Note also that spaces in file names will screw up the easy version of this. If you’re on a filesystem that likes such things, you might instead want something like this:

	: /Library/Desktop; pwd            
	/Library/Desktop Pictures
	: /Library/Desktop; fn cd {builtin cd $* ; cwd=`{pwd} ; prompt=(': '$"cwd^'; ' '	')}
	: /Library/Desktop; cd .
	: /Library/Desktop Pictures; 



> On Jun 12, 2015, at 17:05 , Ryan Gonzalez <rymg19@gmail.com> wrote:
> 
> Thanks for replying! Unfortunately, that doesn't change anything. Still stuck at the 'term% ' prompt.
> 




  parent reply	other threads:[~2015-06-12 21:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-07 23:29 Ryan Gonzalez
2015-06-07 23:43 ` Ingo Krabbe
2015-06-12 21:05   ` Ryan Gonzalez
2015-06-12 21:35     ` Bakul Shah
2015-06-12 21:50     ` Anthony Sorace [this message]
2015-06-13  8:02     ` Ingo Krabbe
2015-06-13 17:22       ` Ryan Gonzalez
2015-06-13 18:46         ` Ingo Krabbe
2015-06-27  0:24           ` Ryan Gonzalez
2015-06-27 13:34             ` Neven Sajko
2015-06-27 16:55               ` Ryan Gonzalez
2015-06-27 20:23                 ` Teodoro Santoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A06F4E38-3C4B-4643-8FB2-B7E77D863874@9srv.net \
    --to=a@9srv.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).