NextAlone
45b6622986
completion/ssh-copy-id: add completion ( #9675 )
...
Add completions for ssh-copy-id.
Refactored __ssh_history_completions into its own file for autoloading across completions.
2023-03-22 12:24:18 -05:00
exploide
5eadee61c5
improved SSH completions
...
- use __fish_complete_ssh also for sftp
- removed old options -1 and -2
- added several newer options
- cleaned up and sorted completion code
2021-03-20 21:17:53 +01:00
exploide
274be5eeeb
added descriptions to __fish_print_addresses
...
added --all flag to include 0.0.0.0 and ::
adapted use of this function in existing completions
fixes #7787
2021-03-08 17:47:29 +01:00
Johannes Altmanninger
f917211f3b
completions/ssh: history --max=n might be better than head -n
2020-10-10 09:24:49 +02:00
Fabian Homborg
a3e20a4d38
Don't use abbreviated long options
...
"function --argument" is not a thing, it's "--argument-names". This only
accidentally works because our getopt is awful and allows abbreviated
long options.
Similarly, one argparse test used "--d" instead of "-d" or "--def".
2020-09-19 11:47:41 +02:00
Fabian Homborg
9367d4ff71
Reindent functions to remove useless quotes
...
This does not include checks/function.fish because that currently
includes a "; end" in a message that indent would remove, breaking the test.
2020-03-09 19:46:43 +01:00
Jason Nader
3142ef6dbc
Add interface label/name to the completions for -b
2020-01-26 12:26:47 +01:00
Jason
2a247c7fe5
Stringify ssh completions ( #6529 )
...
* Stringify ssh completions
* Fix completions for `-b` option
* Fix completions for `-b` option
2020-01-24 18:29:17 +01:00
Johannes Altmanninger
4f1fa9513c
Make most subcommand completions take external commands only
...
Also fix ssh completions which were broken by
277fca9c6a
.
2019-11-05 11:47:05 +01:00
Fabian Homborg
ce245704d7
Reformat completion scripts
...
These were excluded from style.fish
2019-05-05 12:53:09 +02:00
Mahmoud Al-Qudsi
4bdab33a00
Add dynamic cipher completion to ssh -c ...
...
[ci skip]
2019-04-22 15:17:38 -05:00
Mahmoud Al-Qudsi
086d088e1b
Fix scp completions to support bidirectional transfer
...
Also hardcode standard /bin/ls to avoid issues with `ls` aliases on the
target, and inherit the (improved) list of remotes from `ssh`.
2018-06-04 07:32:21 -05:00
Mahmoud Al-Qudsi
facdc88c0c
Improve completions for ssh
by completing from history
2018-04-12 22:28:50 -05:00
Peter Ammon
7659554dea
Remove use of caret redirection from share/*
...
This removes the use of caret redirections from share/completions
and share/functions, in preparation for dropping support in fish.
2018-04-01 13:42:38 -07:00
Fabian Homborg
60248e895f
Use __fish_complete_user_at_hosts
...
for various completions.
This makes the code a bit nicer, removes one of the
__fish_print_hostnames calls (which are slow) and a sed call, thereby
improving performance by about 33% (600ms to 400ms).
Fixes #4511 .
2017-11-08 12:59:31 +01:00
Kurtis Rader
088b10f4c2
style fixes to previous commit
...
This commit addresses many of the style problems with the previous
commit. If this introduces any bugs they are solely my fault. The style
of this code needs more improvement. Some of which could be done today.
Others will have to wait until `fish_indent` is improved.
2017-02-01 22:49:40 -08:00
Dale Eidd
eff6b98813
numerous improvements to ssh/scp completions
...
Add IPV6 /etc/hosts completion support. Parses columns rather than values which produces improved output.
Support ssh -F and Include completion
Ignore ssh Hostname and Host with wildcard. The following only get in the way:
- Hostname: Host resolves to Hostname
- Wildcard Host: Cannot ssh to a glob pattern
Improve scp completions
* complete only local files when no host provided
* complete only remote files when host is provided
* complete local files or hosts when no separator
Disable username completion for ssh/scp
Username completion only provides local users which will unlikely be
useful on a remote machine. ssh will use the current username (the only
useful one) or one provided in the ssh config.
2017-02-01 22:12:49 -08:00
Wilke Schwiedop
fa7682ec3c
posixify!
2016-12-21 18:47:04 +01:00
Wilke Schwiedop
28cde83c33
requested changes
2016-12-21 18:44:34 +01:00
Wilke Schwiedop
a927efa015
remove "cat file |" from scripts
2016-12-21 13:46:43 +01:00
Fabian Homborg
05ab849b72
Remove more complete "-u" and "-A" switches
...
Some of these were missed in #3660 .
2016-12-21 13:07:27 +01:00
Aaron Gyes
36691df6fe
Stringify many completions and functions, with --invert stringification.
...
I believe apm must have been buggy - example output that I found online
showed `tr` was mangling paths with spaces in it. Should be fixed.
Also, use dscl on OS X in __fish_complete_users.fish like
__fish_print_users.fish already does.
2016-04-08 10:49:29 +08:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
ridiculousfish
fe68d30be9
Use sgrep instead of grep in ssh completion
2014-08-13 01:06:15 -07:00
ridiculousfish
a3a11c2e0c
Strip users with leading underscores from ssh completions
2014-08-12 14:46:59 -07:00
gonchar
39a2fd1717
* git rm and git status options are added
...
* ssh subcomand completion
* __fish_complete_subcommand now can skip variable number of tokens
2011-09-23 14:51:14 +04:00
axel
05341b055b
ish's current hostname completion uses ~/.ssh/known_hosts as one of its sources of information, but ~/.ssh/config may also be useful. Gather all of the 'Host' declarations from ~/.ssh/config and filter out the ones with wildcards. Signed-off-by: James Vega <jamessan@debian.org>
...
darcs-hash:20090202210242-ac50b-cf50070ee33ab6113e32a4d997d464ac4b1faf24.gz
2009-02-03 07:02:42 +10:00
axel
9d7224d756
Add support for completing aliases in ssh. Written by David Bronke.
...
darcs-hash:20090201231805-ac50b-196d4c81981efe681677fe8ca7f1cc833a4734da.gz
2009-02-02 09:18:05 +10:00
axel
34e27ff4c2
Drop use of the N_ no-op for translation descriptions. Instead, tell xgettext that any token following '--description' should be translated. This should greatly speed up completion loading on platforms where fork() is slow. (Hi, OS X)
...
darcs-hash:20070116011828-ac50b-fb923dc877869ded4d506bbe0bc5364eea44092f.gz
2007-01-16 11:18:28 +10:00
axel
f64364cced
Replace all internal uses of grep with sgrep, which is a wrapper around grep that strips away any GREP_OPTIONS. This is needed to avoid users who have added arbitrary switches to GREP_OPTIONS, thus changing its behaviour.
...
darcs-hash:20061129140004-ac50b-485ff6bfd71e9459ba62461f6e093ca5c9ddd664.gz
2006-11-30 00:00:04 +10:00
axel
df5cc6f858
Fix bugs detected by the ahead-of-time syntax checking in the complete builtin
...
darcs-hash:20060521192705-ac50b-b4304328fb4b9cce853055a2f231c48050a17471.gz
2006-05-22 05:27:05 +10:00
axel
c2f6c6c1d2
Do gettext translation of descriptions just-in-time internally in fish
...
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
2006-03-02 02:53:47 +10:00
axel
343cafef34
Redo installation file structure, move lots of things to $PREFIX/share/fish
...
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
2006-02-17 20:13:39 +10:00