FT-Labs / phyOS-iso

phyOS iso image, click for details
307 stars 2 forks source link

conda does not work (commandnotfound error) #14

Closed arch-user-france1 closed 2 years ago

arch-user-france1 commented 2 years ago

Anaconda does not work. It says "commandnotfounderror" even after running conda init zsh (and the conda command works, but the conda activate command does not work).

FT-Labs commented 2 years ago

That is a conda related issue, I have no idea why this is here. Try to check your path or I dont know, I have never used conda before

arch-user-france1 commented 2 years ago

I will investigate this. It is not really a conda issue though, might it be because of your weird way of configuring zsh? You've created a ton of of files and instead of .zshrc you use . config/zsh/.zshrc.

arch-user-france1 commented 2 years ago

I don't like the zsh configuration anyway, I would like to remove your .config/zsh and replace the configuration with the Manjaro configuration... Yeah, maybe I will do that. I could open an issue on the conda's GitHub.

FT-Labs commented 2 years ago

You could do that, but nearly most configuration files are now put in $XDG_CONFIG_HOME. Since ZSH uses a lot of stuff lilke bookmarking and aliasing, this way they are more organized.

arch-user-france1 commented 2 years ago

Conda does change the .config/zsh/zshrc file... At least it says that it does.

FT-Labs commented 2 years ago

Hi,

This problem has been solved. Move conda codes before this function in .zshcfg

case "$TERM" in (rxvt|rxvt-*|st|st-*|*xterm*|(dt|k|E)term)
    local term_title () { print -n "\e]0;${(j: :q)@}\a" }
    precmd () {
      local DIR="$(print -P '[%c]')"
      term_title "$DIR" "st"
    }
    preexec () {
      local DIR="$(print -P '[%c]%#')"
      local CMD="${(j:\n:)${(f)1}}"
      #term_title "$DIR" "$CMD" use this if you want directory in command, below only prints program name
      term_title "$CMD"
    }
  ;;
esac

You are good to go.