Open VitaliyKulikov opened 6 years ago
Honestly, I do not use crosh but Bash, I do not have any problems with completion. To replace crosh by bash: cd /usr/bin;sudo sed -i.bak '' crosh;sudo sed -i '$ i exec /bin/bash --login "$@"' crosh
@beliefless-dogmasless i would like too.. )) but,
crosh> shell
chronos@localhost / $ cd /usr/bin;sudo sed -i.bak '' crosh;sudo sed -i '$ i exec /bin/bash --login "$@"' crosh
sed: couldn't open temporary file ./sed2oHEu4: Read-only file system
sed: couldn't open temporary file ./seddh7BK7: Read-only file system
You need Before being in Developer Mode, then make the partition rw: In the terminal: cd /usr/share/vboot/bin/;sudo ./make_dev_ssd.sh then depending on the result (--partitions 2 ou 4) cd /usr/share/vboot/bin/;sudo ./make_dev_ssd.sh --remove_rootfs_verification --partitions 2;sudo reboot or cd /usr/share/vboot/bin/;sudo ./make_dev_ssd.sh --remove_rootfs_verification --partitions 4;sudo reboot ,you have to do this again at each update of the system
@beliefless-dogmasless: Unless I'm mistaken, I think @VitaliyKulikov wants auto-completion for crew commands and not just bash. Correct me if I'm wrong @VitaliyKulikov.
@VitaliyKulikov: There are instructions in the postinstall section of the git
package that explain how you can get auto-completion working.
@beliefless-dogmasless thanks, i will try. btw: any drawbacks to partition rw mounting?
@uberhacker hmm, i will say for bash
only is ok )) not necessary for crew
. but, any chance to have auto-completion
without https://github.com/skycocker/chromebrew/issues/1731#issuecomment-363394572 steps?
I don't have an answer. I will need to look into it further but I'm thinking initially that an rw mount is not necessary.
This is the command that @uberhacker is talking about in the git package.
if [ -f /usr/local/share/git-completion/git-completion.bash ]; then
source /usr/local/share/git-completion/git-completion.bash
fi
You just add that to your .bashrc for git completion.
@VitaliyKulikov: "any drawbacks to partition rw mounting?" Not really, anyway, at each update of the system, it is necessary to restart the manipulation, on crosh, and rw for the system. unless, I think, to open the box, and to do some 'speleology' to 'remove a security screw' I believe on the bios.
@uberhacker can we create expanded
~/.bashrc
by default or create some package that update rc file with fancy stuff? ))
note: like ubuntu have or others
If the system is rw, you can do anything, from /etc/bash/bashrc but, it's the same with every update, you have to add what you want to bashrc, because it is set to 'zero' by default. Personally, I use a script, which makes me all these operations, at each update.
@VitaliyKulikov I throw mine in a folder called dotfiles then symlink it. I also have it on GitHub. It's basic, but feel free to look through it for stuff. https://github.com/skiman6010/dotfiles/blob/master/.bashrc
The problem with a "default" ~/.bashrc
is every user has their own "preferences". It would be nice if each package could detect which shell is active and configure automagically but that is a Pandora's box to open.
Here's a WIP bash autocomplete script (https://gist.github.com/cstrouse/8e13a7008ebfef49f335d05bb4212409) that you can modify to do what you'd like. This was my first attempt at figuring out bash autocompletion so it's not quite what I was after and needs work.
This should be handled by crew_profile_base by now, right?
Description
Auto-Completion is not working by default even after installing
bash_completion
.Then I typed
crew
in shell I would like to hittab
and see all possible command NOT files. Same, for : git, maven, etc.Versions and system information
chromebrew:
0.4.3
ChromeOS:
Model:
Google Pixelbook
Architecture: