fish-shell/share
Fabian Boehm 6706b15fbc fish_add_path: Automatically enable verbose mode for interactive use
fish_add_path can be used either interactively, in the commandline,
or in config.fish. That's its greatest strength, it's a very
DWIM-style command.

One of the compromises that entails, however, is that it can't really
be very loud about what it does. If it skips a path, it can't write a
warning because it might be used in config.fish.

But it *can* if it's used interactively. So we try to detect that case
and enable verbose mode automatically.

That means if you do

```fish
fish_add_path /opt/mytool/bin/mytool
```

it may tell you "Skipping path because it is a file instead of a
directory:".

The check isn't perfect, it goes through status current-command and
isatty, but it should be good for most cases (and be false in config.fish).
2024-06-06 16:47:39 +02:00
..
completions git: add completion for sparse-checkout subcommand (#10542) 2024-06-02 22:02:06 -05:00
functions fish_add_path: Automatically enable verbose mode for interactive use 2024-06-06 16:47:39 +02:00
groff
tools Fix the acidhub prompt for a commitless repository (#10462) 2024-05-02 19:37:12 +02:00
__fish_build_paths.fish.in
config.fish Move generated completions to cache directory 2024-04-27 10:39:30 +02:00