y/install.sh

22 lines
278 B
Bash
Executable File

#!/bin/sh
# y install script
## use
# bash ./install.sh
PREFIX=~/.local
mkdir -p $PREFIX/src
mkdir -p $PREFIX/bin
git clone --depth 1 \
'https://source.garden/scripts/y.git' \
$PREFIX/src/y/
chmod +x $PREFIX/src/y/y.sh
ln -s $PREFIX/src/y/y.sh \
$PREFIX/bin/y