Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17717 - Shell tab completion pain for chromium and chroot

Attached to Project: Arch Linux
Opened by Daniel Cooper (disp) - Wednesday, 06 January 2010, 00:42 GMT
Last edited by Pierre Schmitz (Pierre) - Monday, 11 January 2010, 18:37 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When trying to use tab completion in the shell, chromium and chroot share the first 4 chars in common. Is it possible to rename /usr/bin/chromium to something like /usr/bin/google-chromium as both chroot and chromium are used quite often.

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Monday, 11 January 2010, 18:37 GMT
Reason for closing:  Not a bug
Comment by Andrea Scarpino (BaSh) - Wednesday, 06 January 2010, 01:14 GMT
  • Field changed: Task Type (General Gripe → Feature Request)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Pierre Schmitz (Pierre)
I hope Pierre will not implement this...
Comment by Pierre Schmitz (Pierre) - Wednesday, 06 January 2010, 06:27 GMT
Seriously? No. 1) I cannot rename anything to google-* due to legal reasons and 2) the solution is not to rename binaries but using a more sane completion (e.g. the zsh menu based completion)
Comment by Pierre Schmitz (Pierre) - Wednesday, 06 January 2010, 06:47 GMT
Let me add another note: If a completion system does not work it cannot be a solution to alter what you want to complete. Instead have a look at this:

# pacman -S zsh grml-zsh-config
# zsh
# chr<tab><tab><tab> (if there are more alternatives use cursor keys)
# once you had used chroot type chr< up key> to choose the command from history.
Comment by Neil Munro (niadh) - Wednesday, 06 January 2010, 13:06 GMT
Surely creating a symlink from chromium to google-chromium could solve this?

Obviously for the mentioned legal reasons dont have this in arch itself but should someone need this have a wiki entry on how to perform the task?

Would that not be a acceptable solution?
Comment by Daniel Cooper (disp) - Wednesday, 06 January 2010, 13:57 GMT
Nell, it was more that chroot was being 'blocked' by chromium.
Comment by Neil Munro (niadh) - Wednesday, 06 January 2010, 14:57 GMT
Oh, sorry for misunderstanding the issue.

Is it possible for different paths (in the bashrc or bash_profile files) to take precedence (such that applications in /usr/bin/ are found before those in /opt) if so do chroot and chromium reside in the same path? My thinking is that if chroot is in /sbin or somewhere else, could it not come first in tab completion?

Alternatively alias chroot in this instance to something shorter? If tab completion is being used then itÅ› being used interactively so an alias might do, or is that not such a good idea?
Comment by Nezmer (Nezmer) - Wednesday, 06 January 2010, 16:54 GMT
@disp
I assume you heard about aliases?
Comment by Daniel Cooper (disp) - Wednesday, 06 January 2010, 23:02 GMT
Aliases would work ... but it feels a bit wrong aliasing chroot to something else, considering chroot has been a part of unix since before I was even alive.
To be honest, I was not expecting this request to be honoured, but I thought I would try as other linux distributions have gone with google-chrome or something similar.
Comment by Guenther Starnberger (gst) - Saturday, 09 January 2010, 20:03 GMT
There are two main reasons why other distributions don't use the name "chromium":

1) They package the Google branded "Google Chrome" (with a binary called "google-chrome") instead of Chromium (as included in Archlinux). While these two pieces of software are quite similar they are not the same. Google Chrome is built upon the open-source Chromium, but Google Chrome itself is not open-source. Therefore, I'm against renaming the "chromium" binary to "google-chrome".

2) Some distributions already include a binary called "chromium", as there is a computer game called Chromium. So they cannot use this name for the browser. However, Debian based distributions recently renamed the "chromium" game to "chromium-bsu", suggesting that they will sooner or later use the name "chromium" for the browser.

I'm against renaming the "chromium" binary. If someone needs "easier" tab completion the best solution is to "fix" the configuration of the shell. Furthermore, I'm sure there are dozens of other packages where tab completion clashes with names of "traditional" *nix software. Do we want to rename all of these binaries too?
Comment by Pierre Schmitz (Pierre) - Monday, 11 January 2010, 18:37 GMT
Well, let's sum this up: Renaming binaries to alter the order of bash completion is plain nonsense. Sorry, but you are looking at the wrong place to fix your problem.

Loading...