|
From: | Keizen Li Qian |
Subject: | Re: Configuring home/bin PATH directory |
Date: | Tue, 13 Nov 2018 07:43:17 -0800 |
Keizen,Having the ${PATH}: at the beginning defeats the whole point of the change. The directories in the PATH will be searched in the order they occur. So putting $PATH at the beginning means everything in the current PATH will be searched before /usr/share, which means the old lilypond will be found first. Try PATH=/usr/share:$HOME/bin:$HOME/local/bin:$PATHDavid BowenOn Mon, Nov 12, 2018 at 11:28 PM Keizen Li Qian <address@hidden> wrote:Okay, I tried the following. Is something wrong with the syntax? I'm pointing it to /usr/share/lilypond/2.18.2/ but it is still looking in home.# set PATH so it includes user's private bin directoriesPATH="${PATH}:/usr/share/:$HOME/bin:$HOME/.local/bin:$PATH"Keizenthey/themOn Mon, Nov 12, 2018 at 7:11 PM Keizen Li Qian <address@hidden> wrote:Hi David,I found this line in bash.profile (just .profile in my system):# if running bashif [ -n "$BASH_VERSION" ]; then# include .bashrc if it existsif [ -f "$HOME/.bashrc" ]; then. "$HOME/.bashrc"fifiPATH="$HOME/bin:$HOME/.local/bin:$PATH"But there is no bin directory:$ ls .local/sharePlease let me know your ideas. Thank you.Keizenthey/themOn Mon, Nov 12, 2018 at 6:30 PM David Bowen <address@hidden> wrote:It's going to depend on the shell you are using. I use bash and for me the initial setting of $PATH happens in .bash_profile and then I have additions in .bash_login and .bashrc. All of these files are in my home directory. If you wanted to change the $PATH for all users, look at the man page for your shell. Most shells have a global script that gets called for all users on login and that file (or files) will be mentioned in the man page.David BowenOn Mon, Nov 12, 2018 at 8:18 PM Keizen Li Qian <address@hidden> wrote:Thanks, David. I'm using Ubuntu. How do I navigate to the relevant one? Thanks again.Keizenthey/themOn Mon, Nov 12, 2018 at 6:11 PM David Bowen <address@hidden> wrote:What OS are you using? For Linux your $PATH is usually set in one of the shell . files, for Windows it is set in ControlPanel\System.David BowenOn Mon, Nov 12, 2018 at 7:34 PM Keizen Li Qian <address@hidden> wrote:_______________________________________________Hello,I installed 2.18.2 on a drive with a partitioned home directory which had an old ~home/bin/lilypond. Somewhere the path had been set to this directory so even after convert-ly successfully converted my old files to 2.18, running lilypond still grabbed an old version in home/bin. After renaming the old directory, I get bash: /home/bin/lilypond: No such file or directoryI'd appreciate any detailed suggestions for updating this path and finding information like this. Thank you!Keizen
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |