| Commit message (Collapse) | Author | Age |
... | |
|
|
|
| |
Fixes #2772
|
|
|
|
|
| |
Previously there had to be some variable text, now you can
tab complete from just a naked $.
|
| |
|
| |
|
|
|
|
|
|
| |
Much better to only encode the characters that are not URL-safe. This
also doesn't involve any forking, and it even handles newlines and NULs
in the input.
|
|
|
|
|
|
| |
This is a file under version control, there's no reason it should be
listed here. Having it in .gitignore was causing tools like `ag` to
avoid looking at share/config.fish.
|
|
|
|
|
|
| |
I had an old /etc/paths.d/TeX file that listed a path /usr/texbin that
doesn't exist anymore. This was causing the `set PATH` to print a
warning.
|
| |
|
|
|
|
| |
[ci skip]
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows "vendors" (i.e. third-party upstreams interested in
supporting fish) to add auto-loaded functions and eager-loaded
configuration "snippets", while still allowing both the user and the administrator to
fully override all of that.
This has been inspired by systemd's configuration hierarchy, and implements a similar scheme
whereby files with the same name in higher-ranking directories override files in lower-ranking ones.
Fixes #1956
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I noticed while fixing issue #2702 that the fish program being tested
was sourcing config.fish files outside of the current build. This also
happens when Travis CI runs the tests but isn't an issue there because
of how Travis is configured to execute the tests.
I also noticed that running `make test` was polluting my personal fish
history; which will become a bigger problem if and when the fishd universal
var file is moved from $XDG_CONFIG_HOME to $XDG_DATA_HOME.
This change makes it possible for an individual to run the tests on
their local machine secure in the knowledge that only the config.fish and
related files from their git repository will be used and doing so won't
pollute their personal fish history.
Resolves #469
|
|
|
|
| |
completeable.
|
|
|
|
| |
Closes #2469.
|
|
|
|
| |
[ci skip]
|
| |
|
|
|
|
| |
simple grammar correction
|
| |
|
|
|
|
| |
Ought to fix the wildcard expansion test on Linux
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pcre2_substitute() now sets the output buffer length to PCRE2_UNSET (~0)
if the output buffer is determined to be too small. This change keeps
track of the buffer size separately where pcre2 can't touch it.
A better fix would be to let pcre2 tell fish what size buffer it needs.
This can be done with PCRE2_SUBSTITUTE_OVERFLOW_LENGTH, but this
requires pcre2 10.21 or later (released January 12), which may be too
new to introduce as a dependency at this point.
Fixes #2743
|
| |
|
|
|
|
| |
exit status varies in BSD vs. GNU.
|
|
|
|
| |
Noticed by cppcheck
|
|
|
|
| |
Fixes #2741.
|
|
|
|
| |
out_suggested_cdpath is no longer required from is_potential_path
|
| |
|
| |
|
| |
|
|
|
|
| |
This avoids confusion between getcwd() and $PWD
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This will simplify some code and make the cd autosuggestion smarter
|
|
|
|
|
|
|
| |
* When using a UTF-8 locale, set locale to C temporarily in order to
read one byte at a time.
* Use the builtin printf in a forward-compatible way. (GNU)
* Improve the readability of the code.
|
| |
|
|
|
|
|
|
| |
I've run this more than twenty times through Travis CI (by adding/removing
a comment line). Without this tweak the longest sequence seems to be
around six successful runs.
|
|
|
|
|
| |
Previously --merge happened to work, but only because it was
smuggled in through the 'print' command
|
| |
|
| |
|
|
|
|
|
|
| |
get_is_interactive can crash if proc_init has not been called.
Fixes #2280
|
|
|
|
| |
Fix a few typos too
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Expand globs to zero arguments (nullglob) only for set, for and count.
The warning about failing globs, and setting the accompanying $status,
now happens regardless of mode, interactive or not.
It is assumed that the above commands are the common cases where
nullglob behaviour is desirable.
More importantly, doing this with `set` is a real feature enabler,
since the resulting empty array can be passed on to any command.
The previous behaviour was actually all nullglob (since commit
cab115c8b9933ae7db9412c66d452c0ccb2d7152), but this was undocumented;
the failglob warning was still printed in interactive mode,
and the documentation was bragging about failglob behaviour.
|
|
|
|
| |
Patch from `__make_users_completions` of killall command completion
|
|
|
|
| |
`dscl` command have OSX system, to change `__fish_print_users`
|
|
|
|
|
| |
This isn't as necessary anymore and having abbrs in config.fish is nice
for e.g. storing it in git.
|
|
|
|
|
| |
This speeds up adding new abbrs by about 50 to 60% - from 2.3s to 1s for
100 abbrs.
|
|
|
|
|
| |
This speeds up the common case of `abbr -a` calls in config.fish by
about 90% - from 900ms to 90ms for 100 calls.
|
|
|
|
|
|
|
| |
Fixes the invocation of a user-specified browser by the `help` command on Cygwin.
- Use `cygstart` to launch the browser with escaped quotes to avoid problems with spaces in the path to the browser, (e.g. Program Files).
- Use `cygpath` to convert the base help dir to a Windows path before constructing the fie URL to pass to the browser.
|
|
|
|
|
| |
-E is only supported by BSD sed, switch to -r which is also supported
by GNU sed
|