How to refer to absolute paths in fish?

0

1

I'm trying to get fish to recognize an absolute path, either when changing directories or when giving an input to a program. I'm used to typing an absolute path as "C:/..." but in fish the only way I can get it to recognize an absolute path is to write instead "//owner-pc/...". If I do this when I'm changing directories, C:/ is replaced by /o/ thereafter. What is going on here - How are paths represented in fish?

In particular, how do I refer to a file on a different drive D:/ by its absolute path? What if I want to cd to a directory on a different drive?

(I am using Fish on Windows, with Cygwin.)

Holden Lee

Posted 2014-08-26T18:20:13.827

Reputation: 109

1Fish on Windows? Under Cygwin, perhaps? – Dan D. – 2014-08-26T18:24:27.277

Yes. I modified the question. – Holden Lee – 2014-08-27T08:02:35.330

You'll want to investigate the cygpath utility

– glenn jackman – 2014-08-27T13:28:11.947

Answers

0

The cygwin mount command (provided you haven't made any changes) should display the absolute paths to your local drives. fish should be able to properly reference the defaults like /cygdrive/d.

GilbertErik

Posted 2014-08-26T18:20:13.827

Reputation: 1