mirror of https://github.com/aldy505/dotfiles.git
24 lines
432 B
Bash
Executable File
24 lines
432 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function install () {
|
|
cd ~
|
|
git clone https://github.com/justinmeza/lci.git
|
|
cd lci
|
|
cmake .
|
|
sudo make -j $(nproc)
|
|
sudo make install -j $(nproc)
|
|
cd ~
|
|
sudo rm -rf lci
|
|
}
|
|
|
|
function uninstall () {
|
|
rm -rf /usr/local/bin/lci
|
|
}
|
|
|
|
if [ "$1" == "install" ]; then
|
|
install
|
|
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
|
uninstall
|
|
else
|
|
echo "please specify args with install or uninstall"
|
|
fi |