开发者

Is it possible to set the path using an install shell script?

开发者 https://www.devze.com 2023-02-22 01:11 出处:网络
I plan to create a program using shell and is it possible to edit the user\'s path and alias? Or is it normal etiquette to post an instruction that says something like:

I plan to create a program using shell and is it possible to edit the user's path and alias? Or is it normal etiquette to post an instruction that says something like:

  1. "past开发者_如何学Pythone this in your path in .bash_profile"
  2. "paste this in your alias in .bash_profile"

like the one shown here: https://github.com/icefox/git-achievements/blob/gh-pages/README


It's poor etiquette to do either. Create a shell script that invokes your application using exec, and put that in $PREFIX/bin or $PREFIX/sbin.

0

精彩评论

暂无评论...
验证码 换一张
取 消