From 8fe0c461860d927e759649733ebd5d46b80ba349 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 8 Sep 2024 19:56:59 -0700 Subject: [PATCH 1/2] update copy-path --- .config/shell/bin/copy-path | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/shell/bin/copy-path b/.config/shell/bin/copy-path index 92bfd43..b33d783 100755 --- a/.config/shell/bin/copy-path +++ b/.config/shell/bin/copy-path @@ -3,6 +3,10 @@ CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}" +if [ $# -eq 0 ]; then + set -- "$(pwd)" +fi + for f; do realpath "$f" done | $CLIPBOARD_MANAGER From 51a3404b5c521fed0720748fa8bd090442869a8a Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 8 Sep 2024 19:57:50 -0700 Subject: [PATCH 2/2] gloned: now recursive by default --- .config/shell/functions/gloned | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/functions/gloned b/.config/shell/functions/gloned index cbad021..c2a68b6 100644 --- a/.config/shell/functions/gloned +++ b/.config/shell/functions/gloned @@ -10,7 +10,7 @@ gloned() { # remove the url up to the last segment, and remove the .git from the end REPO_DIR="${2:-"$(echo "${1%.git}" | rev | cut -d '/' -f 1 | rev)"}" - git clone "$1" "$REPO_DIR" || return $? + git clone --recursive "$1" "$REPO_DIR" || return $? if ! cd "$REPO_DIR";then echo 'Error: Could not `cd` into the repo' return 1