From d604ce0770b5c42562bf26c4b129794ef23e740f Mon Sep 17 00:00:00 2001 From: Umang Bhalla Date: Fri, 29 Oct 2021 03:26:52 +0530 Subject: [PATCH] feat(base): add (url shortner) surl script --- cr0nus/bin/.local/bin/surl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 cr0nus/bin/.local/bin/surl diff --git a/cr0nus/bin/.local/bin/surl b/cr0nus/bin/.local/bin/surl new file mode 100755 index 00000000..9dcdb45a --- /dev/null +++ b/cr0nus/bin/.local/bin/surl @@ -0,0 +1,11 @@ +#!/bin/bash +#!/bin/sh +word=` rofi -dmenu -i -p "search" -lines 0` +if [ -z "$word" ]; +then (echo "Forgot URL?"; exit 1); +else + (gh issue create --repo umgbhalla/db --label "cli" --title "$word" --body "" | sed -e 's/github.com\/umgbhalla\/db\/issues/umgbhalla.github.io\/i/g' | tr -d '\n' | xcopy); + notify-send "shortened" +fi + +