Skip to content

Commit

Permalink
feat(base): add (url shortner) surl script
Browse files Browse the repository at this point in the history
  • Loading branch information
umgbhalla committed Oct 28, 2021
1 parent 6c0d02d commit d604ce0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cr0nus/bin/.local/bin/surl
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit d604ce0

Please sign in to comment.