Compare commits
No commits in common. "fd1644a41c098534a49697ecfe384a8ac1224ce8" and "8861da21bf8270aa44dc1146002e9396ee81e845" have entirely different histories.
fd1644a41c
...
8861da21bf
|
@ -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
|
1. `omz` - a cool shell framework
|
||||||
2. `nvim` - like vim but better + has my "rice"
|
2. `nvim` - like vim but better + has my "rice"
|
||||||
|
|
||||||
to get the auto generated list of packages, run `./brick.sh -L`
|
|
||||||
|
|
||||||
## have fun ^^
|
## have fun ^^
|
||||||
|
|
44
brick.sh
44
brick.sh
|
@ -66,7 +66,25 @@ PKGS=()
|
||||||
ERRORED=false
|
ERRORED=false
|
||||||
AUTOMATIC=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
|
# setting the BRICKS_DIR var
|
||||||
|
|
||||||
BRICKS_PWD=$(pwd)
|
BRICKS_PWD=$(pwd)
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
|
@ -81,35 +99,11 @@ while :; do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
unset BRICKS_PWD
|
|
||||||
|
|
||||||
|
unset BRICKS_PWD
|
||||||
|
|
||||||
BRICKS_DB=$(brickdb)
|
BRICKS_DB=$(brickdb)
|
||||||
BRICKS_INSTALLED=$(cat $BRICKS_DB/installed)
|
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=()
|
PPKGS=()
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
# which also installs nvim
|
# which also installs nvim
|
||||||
# this brick is GPL3 only
|
# this brick is GPL3 only
|
||||||
|
|
||||||
info() {
|
|
||||||
echo a fun vim-like editor
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgs() {
|
pkgs() {
|
||||||
echo neovim
|
echo neovim
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
# omz brick (pacakge is GPL3 only, omz itself is MIT (as of jan 2024))
|
# omz brick (pacakge is GPL3 only, omz itself is MIT (as of jan 2024))
|
||||||
# made by alice
|
# made by alice
|
||||||
|
|
||||||
info() {
|
|
||||||
echo a nice shell framework
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgs() {
|
pkgs() {
|
||||||
echo sh curl git zsh
|
echo sh curl git zsh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue