zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

New installer options (v2)

Open aarondill opened this issue 1 year ago • 2 comments
trafficstars

This is a rewrite of #590 to reduce the diff and make it a more reasonable pr.

Add support for options in install script

This adds support for serveral new command line options (taken from the usage): - -b, --bin-dir Override the bin installation directory - -m, --man-dir Override the man installation directory - -a, --arch Override the architecture identified by the installer - -h, --help Display this help message This also (coincidentally) allows for $BIN_DIR, $MAN_DIR, and $ARCH to be set to create default settings for these. These variables are always overwritten by the command line arguments.

aarondill avatar Jan 23 '24 10:01 aarondill

@ajeetdsouza I hope I've accomplished what you expected when we first discussed this (almost a year ago) here. If anything is missing, or you have any changes you'd like made, please let me know :smile:

aarondill avatar Jan 23 '24 10:01 aarondill

I used the official install script for the first time today, because of the outdated Debian 11 package. Right away I was surprised by the hard-coded $HOME/.local/{bin,man} directories. While this was easy enough to fix manually, I would appreciate being able to pass the desired directories (or in my case a directory prefix /usr/local) as either a installer script argument or environment variable. I checked the list of Zoxide pull requests and found this one, so I'd like to vote in favour.

rseichter avatar Apr 21 '24 05:04 rseichter

Thank you for the new configuration options. They make automation easier for me, and I have already updated my jobs accordingly.

rseichter avatar May 06 '24 19:05 rseichter

Thank you @aarondill for the PR.

ajeetdsouza avatar May 08 '24 20:05 ajeetdsouza