aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_hostnames.fish
Commit message (Collapse)AuthorAge
* Refine reading ssh_config (#3146)Gravatar Boris Aranovich2016-06-15
| | | | | | | | | | | | https://www.freebsd.org/cgi/man.cgi?query=ssh_config&sektion=5 1. It is possible to add multiple whitespace characters between the keyword (i.e. Host) and the argument(s). 2. It is allowed to have a single = and whitespace between the keyword and the argument(s). 3. It is possible to add multiple host names under a single Host directive by spacing the names apart. 1. and 3. are actual conventions that we use in our team, and I couldn't get auto-complete working for fish without this modification. Modification explained: a. The space between Host(?:name)? and the \w.* was replaced by (?:\s+|\s*=\s*) to match any sequence of whitespace characters, or optional whitespaces with a single =, per spec. b. Result of first replacement is piped through another string replace to switch duplicate whitespace characters to a single space, and then piped to be split by that space. This allows specifying several aliases or host names in a single Host/Hostname definition, also per spec.
* Stringify many completions and functions, with --invert stringification.Gravatar Aaron Gyes2016-04-08
| | | | | | | | 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.
* Make reading ssh files case-insensitiveGravatar Fabian Homborg2016-03-22
| | | | Fixes #2843
* Check ssh's KnownhostsFiles in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | | | | | These are an additional source of information Thanks to @sysbot (#2313) for the inspiration. This also stringifies the ssh_config reading
* print_hostname: Avoid matches in fstab comments harderGravatar Fabian Homborg2016-03-02
|
* Stringify reading nfs in print_hostnamesGravatar Fabian Homborg2016-03-02
|
* Ignore zero-ips in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | This would be a lot of useless options for those who block via hosts.
* Replace `sed -E` with `string replace`Gravatar Fabian Homborg2015-09-28
| | | | | | | | | 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.
* Rename sgrep to __fish_sgrepGravatar Fabian Homborg2015-09-09
| | | | Makes it harder to cause issues with aliases, see fish-shell#2245
* __fish_print_hostnames: ignore errors from getentGravatar David Adam2015-06-19
| | | | Closes #2137.
* __fish_print_hostnames: use awk to process ssh_config filesGravatar David Adam2014-09-29
| | | | | | Uses awk rather than sed to account for multiple formatting options. Closes #1260.
* Ignore "host", "hostname", and hostname wildcardsGravatar Michael Stillwell2014-09-16
| | | | See the PATTERNS section of ssh_config(5) for wildcards supported by ssh.
* Fixed appearance of ssh hostnames with [] in themGravatar Knut Ahlers2014-03-29
| | | | refs https://github.com/fish-shell/fish-shell/issues/1355
* Fixes issue #1234. Fish now parses system wide ssh configuration file in ↵Gravatar Alexander I.Grafov2014-01-12
| | | | addition to user config.
* __fish_print_hostnames: do a better job of searching SSH filesGravatar David Adam2013-09-19
|
* Some spaces to tabs in __fish_print_hostnamesGravatar ridiculousfish2013-04-03
|
* Ignore hashed host names in ssh/known_hostsGravatar Greg Dietsche2013-04-03
| | | | | | | | Valid DNS names cannot have a | character and hashed ssh hosts always begin with the | character. Therefore we ignore lines that begin with |. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* the host keyword in ssh/.config is case insensitiveGravatar Greg Dietsche2013-04-03
| | | | Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* Fix crash when /etc/{fstab,hosts} is unreadable.Gravatar Kenneth Vestergaard2013-02-20
|
* fix typo in hostname completionGravatar David Adam (zanchey)2012-12-10
|
* use sgrep instead of grepGravatar David Adam (zanchey)2012-11-27
|
* use getent for hosts if available, otherwise use more resilient processing ↵Gravatar David Adam (zanchey)2012-11-27
| | | | of /etc/hosts
* ish's current hostname completion uses ~/.ssh/known_hosts as one of its ↵Gravatar axel2009-02-03
| | | | | | 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
* Replace all internal uses of grep with sgrep, which is a wrapper around grep ↵Gravatar axel2006-11-30
| | | | | | 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
* Redo installation file structure, move lots of things to $PREFIX/share/fishGravatar axel2006-02-17
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz