Zsh + mvn environment setup

Hey folks,

I’m facing issues related to setting up Maven environment configurations on my Fedora machine. These problems led to a bug in my zsh terminal. Suddenly, it “stopped working”, and the commands are no longer available. The notebook froze and restarted. Now it’s like this:

After executing source ~/.zshrc, it caused this bug. How can I resolve it? I faced many problems trying to configure Maven, surprisingly, I don’t know what happened, it couldn’t find it and Java was all set. It got worse with this hindrance.

Thanks for any help!

Can you post the output of echo $PATH?

Screenshot from 2024-02-17 19-07-03

[WARNING]: Console output during zsh initialization detected.

When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.

You can:

  - Recommended: Change ~/.zshrc so that it does not perform console I/O
    after the instant prompt preamble. See the link below for details.

    * You will not see this error message again.
    * Zsh will start quickly and prompt will update smoothly.

  - Suppress this warning either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet

    * You will not see this error message again.
    * Zsh will start quickly but prompt will jump down after initialization.

  - Disable instant prompt either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=off

    * You will not see this error message again.
    * Zsh will start slowly.

  - Do nothing.

    * You will see this error message every time you start zsh.
    * Zsh will start quickly but prompt will jump down after initialization.

For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt

My zsh no longer recognizes the commands and when I click to download the packages it tries to install but it already says it is in the system.

ps:

It’s evident that i’ve managed to mess up my PATH variable. but dont know how

Yeah, you probably want to set path like export PATH=$MAVEN_HOME/bin:$PATH in your maven environment.