[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd completion using aliased cd command
From: |
Greg Wooledge |
Subject: |
Re: cd completion using aliased cd command |
Date: |
Wed, 17 Jul 2013 11:07:12 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Jul 17, 2013 at 02:53:41PM +0000, Mark W. Johnson wrote:
> function _cd { command cd "$@"; }
> alias cd=_cd
>
> In my real _cd function it saves off the directories visited, but I didn't
> want to complicate the issue, so I replaced my useful _cd function to
> something useless but simpler to demonstrate the problem.
Was this your intent?
cd() {
save or process "$1" somehow
builtin cd "$1"
}
You can just remove the alias entirely, if that is the case. Then the
problem goes away.