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!
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!
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
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
|
DetailsDescription:
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
# 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.
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?
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?
I assume you heard about aliases?
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.
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?