Skip to content

PATH environment variable gets corrupted #248

@magarin-irg

Description

@magarin-irg

After installing dotly framework, PATH environment variable got corrupted. When terminal starts and shell loads it adds several paths to this variable. Those new paths added by dotly are correctly separated by colons (':'), however, all those paths that already were in PATH before dotly installation changed and now are separated by white spaces. As a consequence many commands which executable is located in those paths are not available anymore. I detected the problem with both, bash and zsh.

As a temporary workaround I added export PATH=$(echo $PATH|tr ' ' :) to .zshrc and .bashrc files. I've been trying to find where dotly manipulates PATH but I didn't succeed. When it comes to $DOTFILES_PATH/shell/exports.sh the PATH is already corrupted. Sorry for my clumsiness.

My system is an Ubuntu 22.04.3 LTS with GNOME and I use the terminal provided by default (gnome-terminal).

This is how PATH looks like when corrupted:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions