y/install.sh

21 lines
279 B
Bash
Raw Normal View History

2023-06-23 20:07:30 +02:00
#!/bin/bash
# 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