Compare commits

..

3 Commits

Author SHA1 Message Date
b1ek caaf940f0c
(feat) add brick version 2024-02-14 12:06:19 +10:00
b1ek f497614854
(feat) add brick for brick 2024-02-14 12:01:11 +10:00
b1ek d8114901dc
(fix) rewrite omz so it would use the proper downloading mechanism 2024-02-14 12:00:18 +10:00
4 changed files with 35 additions and 1 deletions

View File

@ -26,6 +26,7 @@ to do this, run this:
ok so for now there arent a lot (probably wont be lmao) but theres the ones that are there: ok so for now there arent a lot (probably wont be lmao) but theres the ones that are there:
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"
3. `brick` - brick's brick to install brick on your system (hopefully it won't brick it)
to get the auto generated list of packages, run `./brick.sh -L` to get the auto generated list of packages, run `./brick.sh -L`

View File

@ -8,6 +8,7 @@
# settings # settings
set -e set -e
start_time=$(date +%s) start_time=$(date +%s)
version=1.1
# functions # functions
errcho() { errcho() {
@ -131,6 +132,12 @@ while [[ $# -gt 0 ]]; do
inf 'done' inf 'done'
exit 0 exit 0
;; ;;
-v|--version)
echo "brick $version (gpl 3 only)"
echo "made by alice with <3"
echo "https://git.blek.codes/blek/os"
exit 0
;;
-*) -*)
# meh domt need unkonw args # meh domt need unkonw args
shift;; shift;;

22
bricks/brick.brick Normal file
View File

@ -0,0 +1,22 @@
#!/bin/sh
# brick brick - a brick to install brick
# it installs brick.sh to ~/.local/bin/brick
# :3
downloads=(
https://git.blek.codes/blek/os/raw/branch/main/brick.sh
)
pkgs() {
echo bash curl
}
install() {
mkdir -p ~/.local/bin
cp ${downloads[0]} ~/.local/bin/brick
chmod +x ~/.local/bin/brick
}
uninstall() {
rm ~/.local/bin/brick
}

View File

@ -2,6 +2,10 @@
# 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
downloads=(
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
)
info() { info() {
echo a nice shell framework echo a nice shell framework
} }
@ -11,5 +15,5 @@ pkgs() {
} }
install() { install() {
echo sh -c "\$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | bash echo sh -c "\$(cat ${downloads[0]})" | bash
} }