Closed pkill37 closed 5 years ago
I suppose assumption 2 is not a problem if I prepend to ~/.bashrc
rather than append, which I have committed.
And I guess I could argue that assumption 1 is acceptable because I'm going for a default/typical GNU/Linux installation, so the script should not acknowledge different shells like zsh
or fish
.
Still, I'll leave this open for a while.
I think appending something to users' profile is kind of unwanted.
If user is competent enough to run this script, they're competent enough to add it to their profile accordingly
Actually I may be inclined to agree with you @zmilonas. Rather than scripting it I could just print the instructions to the user. It loses the "one step install" aspect to it though...
Plenty of things append an install with instructions to "add zsh
), automatically appending would be annoying because I structure my dotfiles in a particular way, etc.
automatically appending would be annoying because I structure my dotfiles in a particular way, etc.
Yeah that's very true. I didn't like it much either. But I still stuck to it in the spirit of an automagical one-step install.
I'll probably change this tonight.
I'll add that I'm using fish
, so it'd probably be better to add an instruction at the end of the install requesting the user add . linuxify.sh
/source linuxify.sh
to their .bashrc
/.zshrc
/config.fish
/etc.
Alright I've changed the behavior of the script in https://github.com/fabiomaia/linuxify/commit/9140a9c4da69994f753c9a5159133d18686b4fd6
Any comments?
LGTM. :+1:
For everything to work correctly, the script adds
source ~/.linuxify
to~/.bashrc
. But this assumes:bash
~/.bashrc
does not use commands that will only work after the$PATH
has been patched (e.g.export MAKEFLAGS="-j$(nproc)"
will fail if declared beforesource ~/.linuxify
becausenproc
is not yet in the$PATH
)Should the script continue to try to add
source ~/.linuxify
to~/.bashrc
. like this or should the users be responsible for handling this stitching themselves?