| Commit message (Collapse) | Author | Age |
|
|
|
| |
Allows the length of each shortened path component to be customized by setting the `fish_prompt_pwd_dir_length` variable to the number of characters to include (plus a leading dot because that's special). Maintains the default behavior of shortening path components to just one character. You can also set `fish_prompt_pwd_dir_length` to an empty or invalid value or 0 to disable shortening completely.
|
| |
|
|
|
|
| |
Closes: #2141.
|
|
|
|
|
|
|
| |
Among others `mix escriptize` has not been supported since July 2014:
https://github.com/elixir-lang/elixir/issues/2468
Also explain what mix is.
|
| |
|
| |
|
|
|
|
| |
Fixes #2494
|
| |
|
|
|
|
|
|
| |
This reverts commit 233c4436943fb56edf6db44b932221107b37fad1.
See discussion in https://github.com/fish-shell/fish-shell/pull/2489
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This reduces code duplication and adds some previously unavailable
bindings that don't quite _violate_ the vi-principle (like
prevd-or-backward-word on alt-left) and matches other "impure" bindings
like \cf for forward-word (a quite emacs-ish binding) we already have.
Fixes #2412
Fixes #2472
Fixes #2255
|
| |
|
|
|
|
| |
Fixes #1403
|
|
|
|
| |
Fixes #2475
|
|
|
|
| |
Also run it through fish_indent
|
| |
|
|
|
|
|
|
|
|
|
| |
For cygwin, you can't `cd C:`, so a prompt of "C:/Something" is
misleading.
For OSX, we dereference symlinks elsewhere
This also simplifies prompt_pwd quite a bit.
|
|
|
|
| |
Closes #2443.
|
|
|
|
| |
Fixes #2465
|
|
|
|
|
|
|
|
|
|
|
| |
This no longer uses "eval" (which is scary), and is a bit shorter (which
is nice).
Fixes #2299
Fixes #952
Improves #2300
Improves #562
|
| |
|
|
|
|
|
|
|
|
| |
Not for _everything_ because that causes too many options to be
generated (which is an issue for git as it is), but for modified, staged
and added files - which is where it is most useful.
Fixes #901 as far as I'm concerned.
|
|
|
|
| |
Also indent with fish_indent
|
|
|
|
| |
Add completions for rotating and swapping the stack.
|
| |
|
|
|
|
| |
This also removes a hack that's not needed anymore
|
|
|
|
| |
I have no clue why this used eval.
|
|
|
|
| |
This is almost trivial to do with builtins.
|
| |
|
|
|
|
| |
Eliminates a bit of __fish_sgrep
|
|
|
|
| |
Now only one fork (uname) occurs on first load.
|
|
|
|
|
|
|
|
|
|
|
| |
git has options that can appear before commands, but not all of
them, and some of them need an argument. This means
`__fish_seen_subcommand_from` will give too many false-positives, while
`[ (count $cmd) -eq 2 ]` will give too many false-negatives.
Instead go through all arguments and check if they are in that list of
options that can be before a command and skip the argument for them, if
any.
|
|
|
|
|
|
|
|
|
| |
This is to the benefit of systems with ancient GNU sed, which does not
recognize "-E", but only "-r".
Fixes #2305 - even if it doesn't replace all `sed -E` invocations in the
codebase, the others are unlikely to occur on CentOS and other similarly
crusty systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`__fish_apm_using_command` was incorrectly taking lists of commands, new function added to support multiple a command having synonyms.
Simplify switch statement
Also remove superfluous function.
Allow for multiple completions after a command
Useful for removing packages, will complete for more than one.
Code improvements
|
| |
|
| |
|
|
|
|
| |
Also fixes bug related to repo listings
|
|
|
|
|
|
|
|
|
| |
`sort -u | uniq` is completely redundant, calling grep for every
status-pair is unnecessary, `contains` doesn't take the word "in" as
special.
None of these are critical and there's basically no performance benefit
since this function is utterly dominated by hg calls.
|
|
|
|
|
|
| |
This doesn't add anything except slowing the function down by about
33%. Checking for a branch is just as good and that is displayed in the
prompt anyway.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
According to the newer code below:
xdg_data_home = os.getenv('XDG_DATA_HOME', '~/.local/share')
the actual default path is ~/.local/share/fish/generated_completions/
|
|
|
|
|
|
|
| |
This adds the --group-directories-first option for GNU ls and fixes a
typo in --block-size (not --blocksize).
Fixes #2425.
|
|
|
|
|
|
|
| |
This is used in at least 4 places, all of which have a bug in that they
print "options" as a valid repo. It seems better to fix it once,
especially given that there are tons of AUR helpers and pacman wrappers,
all of which might need this info.
|
| |
|