Merge branch 'master' of PowerUser/dotfiles

This commit is contained in:
PowerUser64 2024-09-09 02:43:39 -07:00
commit c4808f1654
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,10 @@
CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}"
if [ $# -eq 0 ]; then
set -- "$(pwd)"
fi
for f; do
realpath "$f"
done | sed -z '$ s/\n$//' | $CLIPBOARD_MANAGER

View file

@ -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