| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
change it
Empty functions may return 1 when eval is used due to the $status not being correctly preserved inside the function definition.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Signed-off-by: Rack Lin <racklin@gmail.com>
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
|
|
|
|
|
| |
Use __ instead of _ as a placeholder for ignored variables in `read`
statements.
|
|
|
|
|
|
| |
grep will fall back to the default colors.
Closes #1316.
|
|
|
|
| |
Closes #1825.
|
|
|
|
| |
Closes #68.
|
|
|
|
| |
Work on #68.
|
|
|
|
|
|
|
| |
Allows abbreviations containing embedded newlines, etc., to be displayed
and exported properly.
Work on #731.
|
|
|
|
|
|
|
| |
Handle unusual cases ('=abc', ' =abc') better - regression from
8e8e6314due to a7bab7b.
Work on #731.
|
|
|
|
|
|
|
|
|
| |
Support for space-delimited abbreviations was added to the expansion
parser in fbade198; this commit extends that support to the user-facing
tools, and documents the space-separated behaviour. Equals-delimited
abbreviations are expected to be removed before the next release.
Work on #731.
|
|
|
|
| |
Closes #1787.
|
|
|
|
|
|
| |
Closes #1804.
Note that if systemd is not running, the completion will fail.
|
|
|
|
| |
Fixes #1323
|
|
|
|
|
| |
This removes some gnarly and probably broken code that attempts
to upgrade from fish 1.21 to fish 1.22. Fixes #1714.
|
|
|
|
|
|
| |
There is no CTRL-C handler for the default mode in the vi bindings. This makes it difficult to say "never mind" and start a new command line like you can do in bash's vi mode.
There were CTRL-C handlers for insert and visual modes that go back to default mode, but nothing happens in default mode. I copy-pasted the CTRL-C handler from the default key bindings file.
|
|
|
|
|
|
|
|
| |
(Ideally, the behaviour of git could be implemented: pipe the input
through a pager iff the length is > window size and in interactive
mode).
Closes #1076.
|
|
|
|
| |
Closes #1133.
|
|
|
|
| |
Fixes #1371
|
|
|
|
| |
Closes #1758.
|
|
|
|
|
|
|
| |
The terminal width magic that __fish_print_help learned doesn't help
when builtin_print_help runs it in a subshell. Instead, add an
undocumented --tty-width flag to __fish_print_help that's used to pass
the terminal width.
|
|
|
|
|
|
|
|
|
|
|
|
| |
As a result of this rewrite, the output now:
* Expands to fit the terminal width, like `man` does
* Preprocesses the manpage with `tbl` just in case, since `man` does
this, even though I doubt any fish manpages use `tbl` formatting.
* Handle bold/underline with the `ul` command as it was designed for
instead of trying to fake it with `sed`.
* Compresses blank lines as `man` does with the default `less -is`
pager.
|
|
|
|
|
|
| |
`eval` prints help if given a single argument of -h or --help.
Fixes #1379.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The usage is still the same, but it's a lot more robust, and also no
longer assumes $fish_user_abbreviations must be a universal variable.
This also fixes the unexpected error output when calling `abbr -a` with
no existing abbreviations.
Calling `abbr -a` with an abbreviation that already exists now silently
overwrites the abbreviation, just like `function` and `bind` do, instead
of complaining.
|
|
|
|
| |
Work on #731.
|
|
|
|
| |
Also fixes `cd /private` displaying as no path on OS X.
|
|
|
|
|
| |
Also do some minor formatting cleanup, make psub return 1 when executed
outside of a command substitution, and make it respect $TMPDIR.
|
|
|
|
|
|
|
|
|
|
| |
# The first commit's message is:
Simplify default fish_prompt
No need for the set_color caching now that it's a builtin.
Also simplify the 3 classic prompts in fish_config's sample_prompts set.
|
|
|
|
|
|
|
| |
Remove comment that AFAICT is not true anymore.
Ensure someone setting __fish_active_key_bindings as a universal
variable doesn't screw up the initial keybinding load.
|
|
|
|
| |
Closes #1343, works towards #1257.
|
|
|
|
|
|
| |
Uses awk rather than sed to account for multiple formatting options.
Closes #1260.
|
|
|
|
|
|
|
| |
Completions can now be written which disable file completion and then
selectively re-enable it using this function.
Closes #834.
|
|
|
|
|
|
|
|
| |
Apparently, in zsh, Meta+H can be used to display the manpage for
the current command. This commit adds this zsh feature to fish shell.
The F1 keybinding is left, although it's now secondary according to
fish help, as some terminal emulators don't let the user press F1 key.
|
|
|
|
|
|
|
|
|
| |
This reverts commit 7cad0069e8f4a652d0e22f1b0198f67399e80157.
https://github.com/fish-shell/fish-shell/issues/1723
http://superuser.com/questions/31445/gnu-bc-modulo-with-scale-other-than-0
This is why we can't have nice things.
|
|
|
|
|
|
|
| |
Closes #1643.
Thanks to Mickaël RAYBAUD-ROIG (https://github.com/m-r-r) for the idea
of printf.
|
|
|
|
| |
Avoid calling seq with 0 as argument since its behaviour is wrong on OS X.
|
|
|
|
|
|
| |
Shell scripts that use `read` should not trigger fish_greeting.
Fixes #1401.
|
|
|
|
|
|
|
| |
Also avoid resetting bindings if fish_key_bindings is "modified" without
actually changing.
Fixes #1638.
|
|
|
|
| |
See the PATTERNS section of ssh_config(5) for wildcards supported by ssh.
|
| |
|
|
|
|
|
|
| |
Setting a non-existant path component to PATH logs an error to stderr.
This is not appropriate for non-interactive temporary modifications,
like the one done by the `sudo` completion helper function.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The new --wraps functionality was breaking aliases of the form
`alias foo='bar baz'`. That is, aliases where the body is multiple
words. Extract the first word of the body and use that instead.
Use better errors for aliases with no name or no body.
|
|\
| |
| |
| | |
kballard-make_type_better
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add the --wraps option to 'complete' and 'function'. This allows a
command to (recursively) inherit the completions of a wrapped command.
Fixes #393.
When evaluating a completion, we inspect the entire "wrap chain" for a
command, i.e. we follow the sequence of wrapping until we either hit a
loop (which we silently ignore) or the end of the chain. We then
evaluate completions as if the wrapping command were substituted with
the wrapped command. Currently this only works for commands, i.e.
'complete --command gco --wraps git\ checkout' won't work (that would
seem to encroaching on abbreviations anyways). It might be useful to
show an error message for that case.
The commandline builtin reflects the commandline with the wrapped
command substituted in, so e.g. git completions (which inspect the
command line) will just work. This sort of command line munging is
also performed by 'complete -C' so it's not totally without precedent.
'alias will also now mark its generated function as wrapping the
'target.
|
| | |
|