bin: fix git-fork and more

This commit is contained in:
xeruf 2022-01-12 12:44:28 +01:00
parent e763fb6a75
commit b95620e460
4 changed files with 9 additions and 10 deletions

View File

@ -109,7 +109,7 @@ if test "$timg"; then
$(test $# -gt 1 && grid=$(expr $(tput cols) / \( 30 - $# \& $# \< 25 \| 5 \)) && $(test $# -gt 1 && grid=$(expr $(tput cols) / \( 30 - $# \& $# \< 25 \| 5 \)) &&
echo "-t0.2 --center $(test $# -lt 30 && echo "--title") --grid=$((grid < $# ? grid : $#))x2") \ echo "-t0.2 --center $(test $# -lt 30 && echo "--title") --grid=$((grid < $# ? grid : $#))x2") \
"${timg[@]}" "${timga[@]}" 2>/dev/null "${timg[@]}" "${timga[@]}" 2>/dev/null
if $inspect || test $# -lt 15; then if $inspect || test $# -lt 10; then
tput setaf 6 tput setaf 6
for img in "${timg[@]}" for img in "${timg[@]}"
do ident="$(identify -ping -precision 3 -format "%wx%h %b %m %[bit-depth]-bit %[colorspace]" "$img")" do ident="$(identify -ping -precision 3 -format "%wx%h %b %m %[bit-depth]-bit %[colorspace]" "$img")"

View File

@ -9,9 +9,9 @@
if test -d ".git" if test -d ".git"
then repo="$(basename "$PWD")" then repo="$(basename "$PWD")"
git remote set-url origin "$(git-repo "${3:-github.com}" "$repo" "$2" "${@:4}")" git remote set-url origin "$(git-repo "${3:-github.com}" "$repo" "$2" "${@:4}")"
else repo="$1" else repo="$1" && shift
git-get "${3:-github.com}" "$repo" "$2" "${@:4}" git-get "${3:-github.com}" "$repo" "${2:-$(git config --get user.name)}" "${@:4}"
cd $(expr "$5" \| "$1") cd "$(expr "$4" \| "$repo")"
fi fi
test "$1" && git remote add upstream "$(git-repo "${3:-github.com}" "$repo" "$1")" test -n "$1" && git remote add upstream "$(git-repo "${3:-github.com}" "$repo" "$1")"
git remote -v git remote -v

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# Clones from resolving the arguments and switches into the new directory # Clones from resolving the arguments and switches into the new directory
# ARGS see git-repo
set -e set -e
remote=$(git-repo "$@") remote=$(git-repo "$@")
echo "Cloning $remote" echo "Cloning $remote"
git clone $remote ${@:4} --recurse-submodules git clone $remote ${@:4} --recurse-submodules
cd "$(test -n "$2" && echo "$2" || basename ${remote%.git})" cd "$(test -n "$2" && echo "$2" || basename ${remote%.git})"
exec "$SHELL"

View File

@ -46,18 +46,17 @@ git clone https://aur.archlinux.org/yay.git /tmp/yay
cd /tmp/yay cd /tmp/yay
makepkg -si makepkg -si
#+end_src #+end_src
- aur recommendations :: tldr++ sc-im espanso [[https://github.com/mookid/diffr][diffr]] timg audiowaveform - aur recommendations :: [[https://github.com/mookid/diffr][diffr]] tldr++ sc-im espanso timg audiowaveform python-dictcc
- bluetooth :: bluez bluez-utils pulseaudio-bluetooth - bluetooth :: bluez bluez-utils pulseaudio-bluetooth
- git tools :: git-bug git-lfs git-crypt git-remote-gcrypt github-cli - git tools :: git-bug git-lfs git-crypt git-remote-gcrypt github-cli
- pass :: pass pass-otp pass-extension-tail pass-clip - pass :: pass pass-otp pass-extension-tail pass-clip
-> interesting: pass-steam, pass-autotype, pass-file, pass-qr, pass-ssh, pass-rotate -> interesting: pass-steam, pass-autotype, pass-file, pass-qr, pass-ssh, pass-rotate
- ssh :: openssh sshfs lemonade-git - ssh :: openssh sshfs lemonade-git
- sync :: syncthing - sync :: syncthing
: systemctl enable --now syncthing : sudo systemctl enable --now syncthing
- productivity :: activitywatch-bin jrnl - productivity :: activitywatch-bin jrnl
- personal aur utils (only useful with dotfiles) :: bat-extras neovim-symlinks stderred-git - personal aur utils (only useful with dotfiles) :: bat-extras neovim-symlinks stderred-git
rdictcc-git - needs extra setup :: rdictcc-git
: pip install beautifulsoup4
- experiments :: kakoune - experiments :: kakoune
** Graphical ** Graphical
- office :: libreoffice-fresh - office :: libreoffice-fresh