From 78beb7ceea858a3cfeeeeeaf7939a430537564f4 Mon Sep 17 00:00:00 2001 From: konsthol Date: Sun, 26 Mar 2023 21:44:30 +0300 Subject: [PATCH] mergeconflix is the new hottest Gaul on the block --- giteaDo | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/giteaDo b/giteaDo index e7ec5ca..c96d340 100755 --- a/giteaDo +++ b/giteaDo @@ -1,11 +1,12 @@ -#!/bin/sh +#!/usr/bin/env bash -GITEA_URL="http://git.konsthol.eu:3333" +GITEA_URL="https://git.konsthol.eu" USERNAME="konsthol" -#MENU="rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p 'Repo to delete'" -MENU="rofi -dmenu -i -p repoToDelete" +#MENU='rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p repoToDelete' +# MENU="rofi -dmenu -i -p repoToDelete" +MENU='tofi --include /home/konsthol/.config/tofi/tofiColors --num-results 10 --prompt-text repoToDelete: ' [[ -n "$SSH_TTY" ]] && MENU="fzf -i --prompt=repoToDelete" NAME="${0##*/}" @@ -92,9 +93,9 @@ else createRepo "$(basename $PWD)" "$description" | jq git init git add . - git commit -m "$(curl -s http://whatthecommit.com/index.txt)" + git commit -m "$(curl -sL --fail https://whatthecommit.com/index.txt)" git remote add origin $GITEA_URL/$USERNAME/$(basename $PWD) - git push -u origin master + git push -u origin main ;; -d|--delete) NAME="$(giteaDo -l | $MENU)"