diff options
Diffstat (limited to 'fish/functions/__xtools_complete_repo_urls.fish')
-rw-r--r-- | fish/functions/__xtools_complete_repo_urls.fish | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fish/functions/__xtools_complete_repo_urls.fish b/fish/functions/__xtools_complete_repo_urls.fish new file mode 100644 index 0000000..052d234 --- /dev/null +++ b/fish/functions/__xtools_complete_repo_urls.fish @@ -0,0 +1,9 @@ +function __xtools_complete_repo_urls + if [ -e /usr/share/xmirror/mirrors.lst ] + string match -vr '^\s*#' </usr/share/xmirror/mirrors.lst | while read -l line + set -l values (string split \t -- $line) + # Mirror url, location, and tier + echo -- $values[2]\t$values[3], Tier $values[4] + end + end +end |