On Tue, May 3, 2016 at 1:19 AM, Elias Assmann <elias.assm...@gmail.com>
wrote:
> Recently, I noticed that tab-completion no longer works for the first
> word on a command line. More specifically, it works for functions but
> not regular commands. For example,
>
> $ ma^I
>
> suggests
>
> man math
>
> but nothing else. It turns out that PATH is not set (as reported by
> ‘set -q PATH’). However, fish does find the commands when I press
> enter, and ‘type’ finds them; it just does not complete them.
>
That's because internally fish uses (/bin /usr/bin PREFIX/bin) if $PATH
isn't set. Where PREFIX is whatever directory was given when `./configure
--prefix=xxx` was run; typically /usr/local. See path_get_path_core in
src/path.cpp. That helps keep the shell from being completely unusable when
$PATH isn't set.
I had PATH set as a universal variable, but it seems that it was somehow
> lost (or partially lost??). Similar problems with universal variables
> are a recurring issue for me. What is the recommended way to manage
> universal variables (e.g., back them up somehow)?
>
Universal files are stored in ~/.config/fish/fishd.* where the extension is
the MAC address of the primary network interface on your system. You might
want to periodically backup that file via a cron job that runs, say, every
hour and which compares the previous backup to the current copy and lets
you know if they're different. That way you'll have an idea when it's
changing which might help you figure out what is causing the change.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users