🧹 Cleanup
2
.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
env
|
|
||||||
.vscode
|
|
11
.travis.yml
|
@ -1,11 +0,0 @@
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- devlopment
|
|
||||||
- test
|
|
||||||
language: minimal
|
|
||||||
sudo: required
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
before_install:
|
|
||||||
- docker build --rm -f "Dockerfile" -t bibata_cursor:latest .
|
|
86
Bibata.sh
|
@ -1,86 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Default settings
|
|
||||||
BIBATA=${BIBATA:-/tmp/Bibata}
|
|
||||||
REPO=${REPO:-KaizIqbal/Bibata_Cursor}
|
|
||||||
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
|
|
||||||
BRANCH=${BRANCH:-master}
|
|
||||||
|
|
||||||
command_exists() {
|
|
||||||
command -v "$@" >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
error() {
|
|
||||||
echo ${RED}"Error: $@"${RESET} >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_color() {
|
|
||||||
# Only use colors if connected to a terminal
|
|
||||||
if [ -t 1 ]; then
|
|
||||||
RED=$(printf '\033[31m')
|
|
||||||
GREEN=$(printf '\033[32m')
|
|
||||||
YELLOW=$(printf '\033[33m')
|
|
||||||
BLUE=$(printf '\033[34m')
|
|
||||||
BOLD=$(printf '\033[1m')
|
|
||||||
RESET=$(printf '\033[m')
|
|
||||||
else
|
|
||||||
RED=""
|
|
||||||
GREEN=""
|
|
||||||
YELLOW=""
|
|
||||||
BLUE=""
|
|
||||||
BOLD=""
|
|
||||||
RESET=""
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_bibata_repo() {
|
|
||||||
|
|
||||||
echo "${BLUE}Cloning Bibata Cursor...${RESET}"
|
|
||||||
|
|
||||||
command_exists git || {
|
|
||||||
error "git is not installed"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
git clone -c core.eol=lf -c core.autocrlf=false \
|
|
||||||
-c fsck.zeroPaddedFilemode=ignore \
|
|
||||||
-c fetch.fsck.zeroPaddedFilemode=ignore \
|
|
||||||
-c receive.fsck.zeroPaddedFilemode=ignore \
|
|
||||||
--depth=1 --branch "$BRANCH" "$REMOTE" "$BIBATA" || {
|
|
||||||
error "git clone of bibata_cursor repo failed"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_bibata() {
|
|
||||||
cd /tmp/Bibata/
|
|
||||||
./install.sh
|
|
||||||
rm -rf /tmp/Bibata
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
main() {
|
|
||||||
|
|
||||||
printf "$GREEN"
|
|
||||||
cat <<-'EOF'
|
|
||||||
|
|
||||||
██████╗ ██╗██████╗ █████╗ ████████╗ █████╗
|
|
||||||
██╔══██╗██║██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗
|
|
||||||
██████╔╝██║██████╔╝███████║ ██║ ███████║
|
|
||||||
██╔══██╗██║██╔══██╗██╔══██║ ██║ ██╔══██║
|
|
||||||
██████╔╝██║██████╔╝██║ ██║ ██║ ██║ ██║
|
|
||||||
╚═════╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
setup_color
|
|
||||||
setup_bibata_repo
|
|
||||||
setup_bibata
|
|
||||||
|
|
||||||
rm -rf /tmp/Bibata
|
|
||||||
printf "$RESET"
|
|
||||||
}
|
|
||||||
|
|
||||||
main "$@"
|
|
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 496 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 494 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 494 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 500 B |
Before Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 913 B |
Before Width: | Height: | Size: 500 B |
Before Width: | Height: | Size: 946 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 510 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 1,005 B |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 496 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 500 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B |