userpath.append() seems to write the modified PATH to all available shell configuration files currently. Example:
$ mkdir temp/ && userpath append -s bash temp/
$ tail -n 2 .bashrc && tail -n 2 .profile
# Created by `userpath` on 2023-06-18 13:18:55
export PATH="$PATH:/home/user/temp"
# Created by `userpath` on 2023-06-18 13:18:55
export PATH="$PATH:/home/user/temp"
I'd think there should be an option to turn that off. Or is there?
This code seems to be responsible for the behaviour:
|
for shell in self.shells: |
|
for file, contents in shell.config(location, front=front).items(): |
userpath.append()seems to write the modifiedPATHto all available shell configuration files currently. Example:I'd think there should be an option to turn that off. Or is there?
This code seems to be responsible for the behaviour:
userpath/userpath/interface.py
Lines 133 to 134 in 9b475a5