​also prompt_pwd can take advantage of named directories to shorten path as
in zsh

hash -d my_dir /backup/project/my_dir
cd /$my_dir/temp
now the prompt can show current dir as "~my_dir/temp"​ instead of
"/b/p/m/temp"

thanks
Santhosh


On Sat, Nov 1, 2014 at 6:07 PM, Greg Reagle <greg.rea...@umbc.edu> wrote:

> On Sat, Nov 1, 2014, at 03:40 AM, Santhosh T wrote:
> > Hi Greg,
> >
> > the approach you suggested works, but not user friendly
> > autocompleting variables appends SPACE rather than "/"
> > i mean:
> >
> > cd $my_d<TAB>
> >
> > now it autocompletes as:
> >
> > cd $my_dir<SPACE>
> >
> > instead of
> >
> > cd $my_dir/
>
> Yes I see your point.  Maybe auto-completion (in general) should not be
> inserting that space?  I don't know.
>
> For now, you'll have to type Backspace Slash after Tab in these cases.
>
> --
> http://www.fastmail.fm - Or how I learned to stop worrying and
>                           love email again
>
>
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to