Johannes Altmanninger
6b2addd9f3
prompt: don't print pipestatus if only the last process failed
...
Example: ps | grep something
[ci skip]
2019-12-10 22:35:24 +01:00
Fabian Homborg
15c6d8fd4c
completions/zstd: Remove code to figure out number of CPUs
...
This purported to need python > 3.4, but used anypython.
Plus it's not super useful anyway since it can easily be told to
use *all* cpus, so there's no need to set it to the precise number.
See #6400 .
[ci skip]
2019-12-10 20:20:21 +01:00
Akatsuki
efb72f1f91
Revert "Move __fish_systemd_machines into machinectl completion script"
...
This reverts commit 9c15b5b7a4
.
2019-12-09 21:07:21 +01:00
Fabian Homborg
b2332e9f3e
Switch default prompt to Classic+VCS
...
This has more info, in particular vcs and status.
The old default is still available as the "classic" prompt.
Fixes #6375 .
2019-12-07 19:25:41 +01:00
Shun Sakai
b862c63905
Fix an issue that cannot run on non-Linux systems
...
If Python 3.4 or later installed on the system, complement to the
number of physical cores. In addition, even if the number of physical
cores cannot be obtained, it was fixed to run properly.
2019-12-07 12:21:51 +01:00
Shun Sakai
8d56609734
Add zstd completions
...
Squashed commit of the following:
commit 55c8e73faff2418161404f012440acced09580e4
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 05:25:02 2019 +0900
Implementation of `zstdless` completions
commit e81ae6f83fb9f23bdd6038fbf29ea594da098c2c
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 05:20:33 2019 +0900
Implementation of `zstdgrep` completions
commit 2ade3a9c01bdc5b024f785c369fcb6c3e007cb19
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:50:42 2019 +0900
Implementation of `pzstd` completions
commit 0b9cb86a6936f3de18db7b2c012da6efec89c8e8
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:39:52 2019 +0900
Implementation of `zstdcat` completions
commit e4a4101d18a82fb06ee451560d079b9b81af5f3e
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:25:05 2019 +0900
Implementation of `unzstd` completions
commit 88ad0af46d486a92ab3989c55abb3ff477e5a372
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:18:38 2019 +0900
Implementation of `zstdmt` completions
commit 13f2bf7951501031c61a5c0f143b8a29eaa9437e
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 01:13:52 2019 +0900
Implementation of `zstd` completions
2019-12-07 12:21:51 +01:00
Shun Sakai
bc2634eaaf
Add lz4 completions
...
Squashed commit of the following:
commit 08ea083bf87a613675789937d7f6740daa26fc61
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:51:35 2019 +0900
Implementation of `lz4cat` completions
commit 027adedfeb7bb65ffd46e44b4266df3d98368326
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:36:12 2019 +0900
Implementation of `unlz4` completions
commit 522925450a8076d4a0d3377cd9233abc643bbbf7
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:19:45 2019 +0900
Implementation of `lz4c` completions
commit 298ce5e05e3be2cac774063ed2ee8289ba53cf24
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:02:52 2019 +0900
Implementation of `lz4` completions
2019-12-07 12:21:51 +01:00
Peter Collingbourne
6dc4ac60ae
Use $PWD to retrieve the current directory in __fish_move_last.
...
(command pwd) uses the system's implementation of pwd. At least the GNU
coreutils implementation defaults to -P, which resulted in symlinks being
expanded when switching between directories with nextd/prevd.
2019-12-07 12:20:31 +01:00
Jason
7999cd4f25
Remove fish_fallback_prompt function
2019-12-07 12:16:48 +01:00
Fabian Homborg
9d14594f7c
Merge pull request #6390 from ammgws/debian
...
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-07 12:16:29 +01:00
Jason
c4400c31f7
Remove deprecated function
2019-12-07 12:16:15 +01:00
Jason
3129b3c5ef
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-05 05:26:26 +09:00
Fabian Homborg
9efb7fd5f6
__fish_cancel_commandline: Always repaint
...
Fixes #6394 .
2019-12-04 21:21:34 +01:00
Fabian Homborg
1fdb23637a
Clean up Classic + VCS prompt
...
- Don't use a guard uvar - we're only setting variables now, and
- that's basically free.
- Allow non-universal color variables
- Simplify the root color setting a bit.
- Some comments
[ci skip]
2019-12-04 21:21:34 +01:00
Jason
a361cde1df
Move __fish_complete_svn_diff into the completion script
2019-12-04 20:53:58 +01:00
Jason
965b142acd
Move __fish_print_zfs_* into zfs completion script
2019-12-04 20:53:01 +01:00
Jason
69dccce937
Move __fish_print_function_prototypes into valgrind completion script
2019-12-04 20:51:55 +01:00
Jason
013001c283
Move __fish_print_lsblk_columns into lsblk completion script
2019-12-04 20:51:37 +01:00
Jason
5107de395d
Move __fish_print_xdg_desktop_file_ids into xdg-mime completion script
2019-12-04 20:51:21 +01:00
Jason
9c15b5b7a4
Move __fish_systemd_machines into machinectl completion script
2019-12-04 20:51:09 +01:00
Jason
b658b421ad
Move __fish_ports_dirs into ports completion script
2019-12-04 20:50:55 +01:00
Jason
40832f897c
Move __fish_portage_print_repository_names into emaint completion script
2019-12-04 20:50:28 +01:00
Jason
69255d5641
Move __fish_parse_configure into configure completion script
2019-12-04 20:50:19 +01:00
Jason
b3f8a93e02
Move __fish_print_abook_emails into mutt completion script
2019-12-04 20:50:01 +01:00
Jason
dacc0b595c
Dont clobber fish_browser if cygstart is available
2019-12-03 18:07:18 +01:00
Johannes Altmanninger
c3374ffd08
Use read --tokenize instead of eval for $BROWSER & $EDITOR
2019-12-03 12:19:16 +01:00
Shun Sakai
62d435f25b
Add completions of --committer-date-is-author-date
and --ignore-date
for git-rebase
2019-12-02 15:23:56 +01:00
Shun Sakai
b4f0a67ef2
Add git-count-objects
and git-gc
completions
2019-12-02 15:23:56 +01:00
edef
031d30c8ac
Handle multiple arguments in $PAGER
...
$PAGER may contain arguments, and should thus be word-split before
invocation.
2019-12-02 15:15:33 +01:00
Fabian Homborg
d91b0f86f4
Repaint all prompts if the variables change
...
This is a good idea in general and simplifies the Classic + VCS
prompt.
2019-12-01 18:15:36 +01:00
Fabian Homborg
115892ccd2
alias: Use read --tokenize
...
This did some weird unescaping to try to extract the first word.
So we're now more likely to be *correct*, and the alias benchmark is
about 20% *faster*.
Call it a win-win.
2019-12-01 18:14:26 +01:00
Jason
2fd1e4ab75
Move __fish_complete_unrar into the completion script
2019-12-01 17:35:35 +01:00
Jason
fa373c102c
Move __fish_complete_wvdial_peers into the completion script
2019-12-01 17:34:46 +01:00
Jason
6486349725
Move __fish_complete_tar into the completion script
2019-12-01 17:34:27 +01:00
Jason
6245d76e57
Move __fish_complete_lsusb into the completion script
2019-12-01 17:33:07 +01:00
Jason
b3291619f4
Add missing logic to trampoline block
2019-12-01 17:31:41 +01:00
Jason
b358cee5fe
Move __fish_complete_setxkbmap into the completion script
2019-11-30 12:12:18 +01:00
Jason
d1a153cc7e
Dont convert path if browser is going to be run in terminal
2019-11-30 09:33:38 +01:00
Jason
585e4e905b
Dont convert path if browser is going to be run in terminal
2019-11-30 09:33:38 +01:00
Jason
8192fb2f2a
Fix Windows path support for WSL/Cygwin
...
- Use wslpath under WSL to provide full path to help file
- Use eval on the final command to cmd.exe
- Use trampoline where necessary for Cygwin
2019-11-30 09:33:38 +01:00
ridiculousfish
39e5ffde93
Rename __fish_complete_file_url to __fish_evince_complete_file_url
...
As the function is now private to evince, use a less generic name.
2019-11-30 00:23:54 -08:00
mk2
c36d802dda
Move __fish_complete_file_url to evince.fish
2019-11-30 00:21:47 -08:00
mk2
439470b048
Move __fish_complete_ant_targets to ant.fish
2019-11-27 16:32:37 +01:00
0x005c
48dc9b1e82
Add replace mode in vi-mode
2019-11-25 16:05:10 -08:00
Jason
3cf6ebc0e1
Amend typos and grammar errors
2019-11-25 13:07:15 +01:00
Akatsuki
cb72a33e0c
Fix some issues in __fish_complete_subcommand.fish
...
Fix 'string length: Unknown option': add `--` before $subcommand
Fix count $subcommand always = 1 with `sudo` and `doas`:
give argv as array to __fish_complete_subcommand
[ci skip]
2019-11-17 00:39:06 +01:00
Fabian Homborg
330f1701d7
Restyle
...
This mostly fixes some wrong indents or replaces some stray tab indents.
I excluded alignment on purpose, because we have a whole bunch of code
that goes like
```fish
complete -c foo -n 'some-condition' -l someoption
complete -c foo -n 'some-longer-condition' -l someotheroption
```
and changing it seems like a larger thing and would include more
thrashing.
See #3622 .
2019-11-16 14:57:59 +01:00
Fabian Homborg
c14a7cbc8f
seq.fish: Allow "--" separator
...
This ended up breaking the random test on OpenBSD (apparently the only
place where this is actually used).
2019-11-16 11:21:45 +01:00
Fabian Homborg
7527fc265b
psub: Use explicit command
...
This would have prevented #6323 .
While we don't want to pepper `command` everywhere, `psub` is kind of
a core thing, so we should try to proof it against common problems.
2019-11-14 17:13:39 +01:00
Sergei Morozov
91bda38d57
Added the missing argument for -c|--configuration option of PHPUnit
2019-11-13 13:24:41 -08:00