Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Install without root permissions #998

Unanswered
MicroNateId asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

You can use the standard ./configure & make install as described in the following part of README.

If you don't have the package readily available for your distribution, or
you simply don't want to use one, you can install bash completion using the
standard commands for GNU autotools packages:
```shell
autoreconf -i # if not installing from prepared release tarball
./configure
make # GNU make required
make check # optional
make install # as root
make installcheck # optional, requires python3 with pytest >= 3.6, pexpect
```

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
You must be logged in to vote
1 reply
Comment options

scop Jun 8, 2023
Maintainer

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.

Comment options

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.

You must be logged in to vote
1 reply
Comment options

scop Jun 12, 2023
Maintainer

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /