-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash-Completion Errors #544
Comments
See #536 @mathiasbynens you might want to add this to the readme :) |
Thanks a lot! By the way, these both lines will fix these issues, maybe they could be part of the brew.sh script?
|
^ +1 |
^ +1 thanks @itinance |
1 similar comment
^ +1 thanks @itinance |
+1... and +1 thanks @itinance! |
1 similar comment
+1... and +1 thanks @itinance! |
Thanks @itinance |
+1 thanks @itinance |
+1 thanks @itinance |
Here is a article on updating Bash on Mac OS X. |
^ +1 thanks @itinance |
@itinance Here’s a slightly more robust version: if ! grep '/usr/local/bin/bash' /etc/shells; then
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
chsh -s /usr/local/bin/bash;
fi; |
Thanks @itinance and @mathiasbynens |
it's not work on subl |
@sd9972 did you open a new shell to test out the results of your |
@jeffbyrnes Thanks for help. :) |
@sd9972 can’t really tell what that
Please just copy & paste the output of your shell here, no need to take screenshots, you can use fenced code blocks to make it render more clearly. |
|
Well, that all looks good. Perhaps try running |
@sd9972 damn. Yeah, really not sure what‘s going on there. Do you have any other shell stuff loaded up? bash-it or something similar? |
i don't use bash-it or something about bash shell w/o this !!! |
@sd9972 I’m at a loss as to what’s missing from your setup, and why the version of bash installed via brew isn’t the bash your shell is using. Sorry I can’t be of more help! |
@mathiasbynens just did a fresh install and noticed this issue as well, wondering if it's worth adding your solution in somewhere to automate this fix? |
Also getting this error:
I tried running as I also tried: http://superuser.com/questions/442849/why-do-i-see-operation-was-denied-because-the-current-credentials-do-not-have-t and have With Then I ran into an issue where I couldn't open Terminal/iTerm, but a computer restart fixed this. Following @jeffbyrnes commands I get;
|
@s10wen two things:
You’ll want to remove the duplicate entries for I’m curious, is your user an admin user? And are you on El Capitan? |
Thanks for the reply I'm just travelling atm but I'll have a look later today. I'm on El Capitan. Something that might be a factor is that this is a work machine, I have a local admin 'simonowen' then also a work admin 'owensi' but afaik they both have full admin rights.
|
As long as they’re both admins, you should be able to |
@jeffbyrnes I enabled a 'mobile' user in the system preferences and I'm sorted now :) looks like it was a permissions / user issue. Thanks for your help, cleaned up the duplicate entries as well. |
I was having this issue as well, and, fixed it with the code in @itinance 's comment. Here's what happened with mine: Since I already had a homebrew dev environment setup, I chose not to use the brew.sh script. Instead, I just installed the newer Bash manually, then issued the So... if you're having this issue, maybe you missed this, too? You have to manually add the new Bash path to |
From issue mathiasbynens#544 in source branch [mathiasbynens#544]
Patch Set 3: > Patch Set 3: Verified-1 > > This breaks completion on mac (which uses bash 3.2): > > bash-3.2$ source build/envsetup.sh > bash: type: compopt: not found > bash: type: compopt: not found > bash-3.2$ adb <tab>bash: type: _init_completion: not found mathiasbynens/dotfiles#544 This issue is exactly the same as what we encountered, upgrading bash via brew will resolve this issue. Many built-in commands such as compopt and declare are not available in out-of-box bash in MacOSX. Perhaps we have to test BASH_VERSION > 4 in envsetup.sh and inform users to upgrade bash to eliminate this issue since 3.x is really outdated. Patch-set: 3 Reviewer: Gerrit User 1311067 <1311067@85c56323-6fa9-3386-8a01-6480fb634889> Label: Presubmit-Ready=0
Patch Set 3: > Patch Set 3: > > > Patch Set 3: Verified-1 > > > > This breaks completion on mac (which uses bash 3.2): > > > > bash-3.2$ source build/envsetup.sh > > bash: type: compopt: not found > > bash: type: compopt: not found > > bash-3.2$ adb <tab>bash: type: _init_completion: not found > > mathiasbynens/dotfiles#544 > This issue is exactly the same as what we encountered, upgrading bash via brew will resolve this issue. Many built-in commands such as compopt and declare are not available in out-of-box bash in MacOSX. > > Perhaps we have to test BASH_VERSION > 4 in envsetup.sh and inform users to upgrade bash to eliminate this issue since 3.x is really outdated. Tab completion currently working in 3.2, and it's unlikely that apple will ever upgrade past that (with the GPLv3 license change in 4). We shouldn't be breaking the default shell on one of our supported systems to add what's still considered an unsupported shell. Patch-set: 3 Reviewer: Gerrit User 1074628 <1074628@85c56323-6fa9-3386-8a01-6480fb634889>
I've installed this dotfiles-repo on a newly installed Yosemite Machine. I also ran brew.sh after installing homebrew. Everything works as expected, but not in the terminal.
After reboot each terminal starts with lots of errors:
Also, when i want to use bash completion, something like this happens:
I typed "mv Dropb" and pressed the Tab-key then. The other characters "-bash: $(prev..." occur then and restricts me to use the bash completion as it was possible before installing these dotfiles.
which part of the dotfiles should i change (or delete) to fix these issues?
The text was updated successfully, but these errors were encountered: