Comments (11)
I've got the same issue on Lion w/ Terminal.app.
from bash-it.
I've fooled around in the scripts and narrowed down that the issue seems to be with the preexec.bash script. If I remove the calls to the precmd and preexec functions then the "\e]0;some command" bit goes away. Both those functions seem to only return true. I'm not very familiar with shell scripting and the bash prompt to know what that's doing.
The top of preexec.bash mentions that it was tested to work on OS X 10.4. Since it runs fine on my 10.5 machine, my guess is that something was updated in 10.6 causing the script to no longer work properly in post 10.5 versions of OS X.
from bash-it.
After posting my previous comment I've further narrowed the issue down to the set_xterm_title function in the xterm.plugins.bash script. Disabling the xterm plugin fixed the issue for me. Cnn you check if you have the xterm plugin enabled @meirish ?
from bash-it.
I was playing around and just decide to upgrade my version of bash (the one that ships with OS X is pretty old). I did it via home brew: brew install bash
and then followed the instructions here: http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.html to register the new version and set it as the default for my user. After I did that, the double errors went away.
from bash-it.
Out of curiousity, does #106 help with this? Not sure if they're related, but they might be?
from bash-it.
@tswicegood I've pulled in the changes from #106, but I'm still seeing the same issue. Perhaps the xterm plugin still needs some work.
from bash-it.
Upgrading to bash 4.2 solved the prompt problem for me. I followed meirish's directions above.
from bash-it.
$ rm ~/.bash_it/plugins/enabled/xterm.plugins.bash
It works for me. Broken prompt no longer shown. OSX Lion (10.7.3) and Bash 3.2.48(1)-release (x86_64-apple-darwin11)
from bash-it.
I just ran into this on a fresh install of bash-it
, but couldn't track down the culprit. I'll try nixing the xterm
plugin and see if that fixes it. Odd part was that on another fresh install it worked. I think there's a difference in the default .bash_profile
and my .bash_profile
that changed it up. Wasn't TERM
-- I checked that.
from bash-it.
I've confirmed that removing/unenabling the xterm plugin fixes the issue for me.
from bash-it.
Ok, so the fix here is to not use the xterm
plugin. I've renamed it to _xterm
and modified the installation script to ignore it. That should fix it for most people while not entirely removing the functionality.
from bash-it.
Related Issues (20)
- [Bug]: All Bash-it commands broken HOT 5
- [Bug]: Duplicate declaration of `grm` in git.aliases.bash HOT 6
- [Bug]: "egrep: warning: egrep is obsolescent" HOT 7
- [Bug]: aliases completion has conflict with tmux completion HOT 5
- [Bug]: command_duration is broken on different locales than en_US.UTF-8
- [Bug]: System alias ll='ls -l --color=auto' with aliases completion enabled breaks bash file/directory tab completion behavior HOT 4
- [Feature]: show plugins option (--verbose?) to show plugin source URI/http uri - as there is no plugin documentation.
- [Feature]: Add GNU-Screen and tmux indication at PS1 HOT 2
- Bash ur
- Besh
- [Bug]: bash-it preview is not working HOT 2
- [Bug]: After dev channel update getting source error HOT 4
- Want to learn bash?
- Why does installation add a interpreter directive (shebang) to bash_profile? HOT 1
- bash: warning: setlocale: LC_ALL: cannot change locale (en_uS.UTF-8): No such file or directory HOT 1
- [Bug]: install bash_it on PVE debian-12-genericcloud-amd64-20230612-1409.qcow2 HOT 1
- [Request]: do you need maintainers? HOT 2
- [Feature]: nvm: only show node version if folder has package.json
- [Bug]: .bash_it/lib/history.bash reuses HISTCONTROL for it's own incorrect purposes by default HOT 3
- [Bug]: Uninstall script shouldn't delete existing bashrc and mindlessly pull from old backup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-it.