42 lines
970 B
Bash
Executable File
42 lines
970 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DES_DIR=~/.local/bin
|
|
mkdir -p $DES_DIR
|
|
|
|
DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
install() {
|
|
ln -s $DIR/gitui/gitui $DES_DIR/gitui
|
|
ln -s $DIR/fzf/fzf $DES_DIR/fzf
|
|
ln -s $DIR/nvim/bin/nvim $DES_DIR/nvim
|
|
ln -s $DIR/ranger/ranger.py $DES_DIR/ranger
|
|
ln -s $DIR/ripgrep/rg $DES_DIR/rg
|
|
ln -s $DIR/yazi/yazi $DES_DIR/yazi
|
|
ln -s $DIR/zoxide/zoxide $DES_DIR/zoxide
|
|
ln -s $DIR/fd/fd $DES_DIR/fd
|
|
ln -s $DIR/btop/bin/btop $DES_DIR/btop
|
|
echo "Installation complete."
|
|
}
|
|
|
|
remove() {
|
|
rm -f $DES_DIR/gitui
|
|
rm -f $DES_DIR/fzf
|
|
rm -f $DES_DIR/nvim
|
|
rm -f $DES_DIR/ranger
|
|
rm -f $DES_DIR/rg
|
|
rm -f $DES_DIR/yazi
|
|
rm -f $DES_DIR/zoxide
|
|
rm -f $DES_DIR/fd
|
|
rm -f $DES_DIR/btop
|
|
echo "Removal complete."
|
|
}
|
|
|
|
if [ "$1" == "install" ]; then
|
|
install
|
|
elif [ "$1" == "remove" ]; then
|
|
remove
|
|
else
|
|
echo "Usage: $0 {install|remove}"
|
|
exit 1
|
|
fi
|