Skip to content

Commit

Permalink
Merge pull request #7 from loicreynier/master
Browse files Browse the repository at this point in the history
Add prefix option to install script
  • Loading branch information
homerours authored Nov 25, 2024
2 parents 09686c7 + 41a1d11 commit 94092c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ A C compiler is needed to install from source. The makefile uses `gcc`.

You can use the install script to clone and compile jumper + set up the shell keybindings automatically:
```sh
sh -c "$(curl -s https://raw.githubusercontent.com/homerours/jumper/master/install.sh)"
PREFIX=$HOME/.local/bin sh -c "$(curl -s https://raw.githubusercontent.com/homerours/jumper/master/install.sh)"
```

#### Manual installation
Expand Down
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ git clone https://github.com/homerours/jumper
cd jumper
echo
echo "Building jumper's binary..."
make install
if [ -z "$PREFIX" ]; then
make install
else
make PREFIX="$PREFIX" install
fi

cd "$CURRENT_DIR"

Expand Down

0 comments on commit 94092c6

Please sign in to comment.