LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rust w/aligner utility but have to add to $PATH for cargo then aligner each time (https://www.linuxquestions.org/questions/linux-software-2/rust-w-aligner-utility-but-have-to-add-to-%24path-for-cargo-then-aligner-each-time-4175679024/)

shinamouri 07-20-2020 01:18 AM

Rust w/aligner utility but have to add to $PATH for cargo then aligner each time
 
Currently assigning the Path each time I need to run cargo (cargo will show already installed, but provides the directory path info I need), as follows:
export PATH="/home/shinamouri/.cargo/bin:$PATH"

and similarly for aligner

export PATH="/root/.cargo/bin:$PATH"

After which I can run the utility, but upon completion, the terminal window prompt states a process is still running. The outputted file is already available, so I close the terminal window, but have to repeat the whole process if I open a terminal again. It seems like the directories added to $PATH are being reset.
Is there a simple way to set it up so I don't have to repeat the process every time?

Notes:
1:Rust install guide I used: https://www.techrepublic.com/article...rust-on-linux/

2:aligner takes two subtitle files as paramaters, outputting the 2nd, shifted to the timing of the first. (useful for language study)



TLDR: I need help making directories stick in $PATH

berndbausch 07-21-2020 07:23 AM

I know nothing about the programs you want to run, but you should put the PATH in a script that is executed when you log on or start a shell. Which script that is depends on your shell and also your distro. If the shell is Bash, put the PATH assignment in .bash_profile or .bashrc.


All times are GMT -5. The time now is 09:40 AM.