darcs

Issue 2676 darcs bash autocompletion

Title darcs bash autocompletion
Priority invalid Status wont-fix
Milestone Resolved in
Superseder Nosy List youngmysteriouslight
Assigned To
Topics

Created on 2021-03-24.14:11:34 by youngmysteriouslight, last changed 2022-04-12.13:01:37 by bfrk.

Messages
msg22678 (view) Author: youngmysteriouslight Date: 2021-03-24.14:11:31
STEPS TO REPRODUCE:

1. Install darcs with stack
2. Download darcs autocompletion file from
https://hub.darcs.net/darcs/darcs-2.16/browse/contrib/darcs_completion
to /etc/bash_completion.d/darcs
3. Do darcs <TAB> <TAB> in terminal emulator

Environment: Linux Mint 20

EXPECTED:

List of options (clone, --version, --help etc)

GIVEN:

Nothing

POSSIBLE CAUSE:

darcs do not implement --list-options
msg22679 (view) Author: bfrk Date: 2021-03-25.07:31:54
It works for me. When no command is given, the option darcs is invoked
with is called --commands, not --list-options. Outside of a darcs repo
this gives me

$ darcs --commands
help
initialize
clone
log
--help
--version
--exact-version

Have you checked that the completion script was downloaded correctly?
Downloading from the URL you posted gives me the html page that displays
the file, not the bash completion script itself. To get that, use

  wget http://darcs.net/screened/contrib/darcs_completion
msg22965 (view) Author: bfrk Date: 2022-04-12.13:01:37
works for me
History
Date User Action Args
2021-03-24 14:11:34youngmysteriouslightcreate
2021-03-25 07:31:57bfrksetmessages: + msg22679
2022-04-12 13:01:37bfrksetstatus: unknown -> wont-fix
priority: invalid
messages: + msg22965