-
Notifications
You must be signed in to change notification settings - Fork 400
Install without root permissions #998
-
Is there any way to install this to a local user directory without having root permissions?
Work environment is locked down, but I would love to benefit from the full completion capability.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 2 replies
-
You can use the standard ./configure & make install as described in the following part of README.
Lines 32 to 43 in 47aa0a2
You can specify the flag --prefix=/install/path/to/bash-completion (please replace the path with the one where you want to install bash-completion, such as $HOME/.local or $HOME/.opt/bash-completion/master) to the ./configure command in the above instructions.
./configure --prefix=/install/path/to/bash-completion
Beta Was this translation helpful? Give feedback.
All reactions
-
Additionally, I'm not sure if we document it anywhere, but it's possible to run in-place from a git clone without actually "installing" anything.
In a nutshell, clone the repo somewhere, cd to that dir, then
autoreconf -i ./configure make
...and just . /path/to/that/dir/bash_completion in bashrc.
make clean && make is advisable after a git pull later when upgrading to refresh symlinks.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank, will give that a shot this week - the other bonus is I've got two different linux distributions run with the same home directory mount point... so might need two different folders to configure for what each environment supports, but that doesn't sound too bad.
Beta Was this translation helpful? Give feedback.
All reactions
-
Most of the functionality is determined at runtime as opposed to configure/make time, so sharing the same dir between completely different systems should generally work just fine.
Beta Was this translation helpful? Give feedback.