-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgclone
More file actions
executable file
·27 lines (23 loc) · 912 Bytes
/
gclone
File metadata and controls
executable file
·27 lines (23 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
#
# #############################################################
# File...: gclone
# Project: scripts (none)
# Created: Sunday, 12/07/2020-21:24:15
# Author: broken7c4 (none) - [fgm@7c4]
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~
# Last Modified: Saturday, 2023/05/13 - 00:38:18
# Modified By: bkn7c4
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~
# Description:
# > script to clone git repositories from qutebrowser
# #############################################################
#
DIR=~/devel/gclone
mkdir -p $DIR/repos.urls
URL=$1
project_name=$(echo "$URL" | rev | cut -d '/' -f1,2 | rev | tr -s '/' '.')
git clone "$URL" $DIR/$project_name/
echo "$URL" > "$DIR/repos.urls/$project_name.gclone"
notify-send "gclone" "$DIR/$project_name/"
second-terminal -e ranger "$DIR/$project_name/"