要从命令行使用lilypond,你应该创建一个脚本,chmod它,并将它的位置放在PATH上(参见右栏here)。你应该使用.profile进行PATH更改,但这对我不起作用,所以我使用了.bash_profile。
有效(为什么没有.profile工作?我应该更喜欢.bashrc?),但which lilypond
没有看到脚本,我认为原因是我看不到的原因在haskell的System.Directory中使用findExecutable。
是这样,我该如何解决?
答案 0 :(得分:0)
Bash不会在双引号内扩展~
。请改用export PATH=~/bin:"$PATH"
。
如果~/.bash_profile
和~/.profile
都存在,则Bash仅在作为交互式登录shell调用时才会读取~/.bash_profile
。终端和iTerm 2打开新shell作为登录shell,因此Bash读取~/.bash_profile
但不读~/.bashrc
。请参阅http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html。