Compare commits

..

No commits in common. "fd1644a41c098534a49697ecfe384a8ac1224ce8" and "8861da21bf8270aa44dc1146002e9396ee81e845" have entirely different histories.

4 changed files with 19 additions and 35 deletions

View File

@ -27,6 +27,4 @@ ok so for now there arent a lot (probably wont be lmao) but theres the ones that
1. `omz` - a cool shell framework
2. `nvim` - like vim but better + has my "rice"
to get the auto generated list of packages, run `./brick.sh -L`
## have fun ^^

View File

@ -66,7 +66,25 @@ PKGS=()
ERRORED=false
AUTOMATIC=false
# settings the PKGS var
# lets grab those from argv
while [[ $# -gt 0 ]]; do
case $1 in
-y|--noconfirm)
AUTOMATIC=true
shift;;
-*)
# meh domt need unkonw args
shift;;
*)
# everything else is a package name however
PKGS+=("$1")
shift;;
esac
done
# setting the BRICKS_DIR var
BRICKS_PWD=$(pwd)
while :; do
@ -81,35 +99,11 @@ while :; do
exit 1
fi
done
unset BRICKS_PWD
unset BRICKS_PWD
BRICKS_DB=$(brickdb)
BRICKS_INSTALLED=$(cat $BRICKS_DB/installed)
# settings the PKGS var
# lets grab those from argv
while [[ $# -gt 0 ]]; do
case $1 in
-y|--noconfirm)
AUTOMATIC=true
shift;;
-L)
inf "listing packages"
for pkg in $(find $BRICKS_DIR -maxdepth 1 -type f -printf "%f\n" | grep -E \\.brick$ | sed 's/.brick//'); do
source $(getbrick $pkg)
inf "$(inf "$pkg - $(info)")"
done
exit 0
;;
-*)
# meh domt need unkonw args
shift;;
*)
# everything else is a package name however
PKGS+=("$1")
shift;;
esac
done
PPKGS=()

View File

@ -4,10 +4,6 @@
# which also installs nvim
# this brick is GPL3 only
info() {
echo a fun vim-like editor
}
pkgs() {
echo neovim
}

View File

@ -2,10 +2,6 @@
# omz brick (pacakge is GPL3 only, omz itself is MIT (as of jan 2024))
# made by alice
info() {
echo a nice shell framework
}
pkgs() {
echo sh curl git zsh
}