-
Notifications
You must be signed in to change notification settings - Fork 220
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
Anaconda interferes with clear
command in Terminal
#331
Comments
Note @asmeurer, I added your binstar channel to install PyQt5. |
That actually may be the problem, because if I activate another conda environment, the problem goes away. |
Actually, there is an |
If I just remove that one file, I get a garbage printout from |
I'm getting the same issue, @blink1073 - if append to path (as opposed to prepend) it works fine, but that gives system python etc. higher precedence. Any further with this at all? |
Got the same issue with termite and unicode-rxvt on Archlinux and found a simple (but ugly) workaround: Unfortunately, this should be done for each env (including root env). |
You might have moved the |
The "clear" command only works when I am outside of a conda environment or if I am root. @plopd fix did not work. |
I found that renaming the $CONDA_PREFIX/bin/clear has resolved the issue |
Did the trick for me! (Manjaro) |
Did the trick for as well on both Ubuntu and Debian! btw, I think this should obviously work on any Linux distro, because they all have the same file system, at least that's what I know. |
For me on Macbook, It worked. |
Workes on Garuda Linux (Arch based). |
|
THX! After restarting terminal it works as intended. |
|
sudo mv $CONDA_PREFIX/bin/clear $CONDA_PREFIX/bin/clear_old also works for my ubuntu 20.04. |
|
This is renaming the anaconda "clear" binary to "clear_old" so that it doesn't interfere with the default "clear" program. This is probably needed because the anaconda binaries folder path is being prepended to PATH, instead of appending. Instead of renaming the anaconda "clear" binary, I changed this line in my
to this
|
manually changed it , works on artix |
I use kitty and the miniconda clear program refused to clear my terminal's output. Probably because miniconda clear only worked with xterm compliant shells, while Kitty is not? The problem also occurs because miniconda prepends path of newly created environments to the shell PATH, instead of appending to it. So in order of precedence, miniconda clear triggers instead of system clear binary. To solve this, I copied my system clear from /usr/bin/clear to the miniconda3/bin folder and the problem is resolved for now. need to see if the hack sustains through various conda upgrades. |
Wondering if this obvious will be resolved anytime soon... |
This issue is likely caused by the lack of Then, in your export TERMINFO="/usr/share/terminfo" Now, restart your terminal emulator. This issue is still due to a bug in the build of anaconda/miniconda. The |
Nice @iteemhe . How did you find this, if I may ask? |
Worked for me, thanks |
When loading anaconda3 module hit an issue with the terminfo/termcap files. [This issue](ContinuumIO/anaconda-issues#331) summarizes it nicely and the fix is to set TERMINFO env var. This commit adds a hook to set TERMINFO in the anaconda module file.
solved my problem, which might be caused by the bug of ncurses=6.4 |
When I add the
anaconda/bin
folder to my path:Otherwise the
clear
command works just fine.cc @asmeurer, since your name is in the path. 😄
The text was updated successfully, but these errors were encountered: