Skip to content

Instantly share code, notes, and snippets.

@tonyseek
Last active March 9, 2023 04:00
Show Gist options
  • Save tonyseek/d6665d9cc18b154f48943898643b8268 to your computer and use it in GitHub Desktop.
Save tonyseek/d6665d9cc18b154f48943898643b8268 to your computer and use it in GitHub Desktop.
"gi tfetch" => ~/.local/bin/gi tfetch => gti fetch => git fetch (but with a car)
#!/bin/bash
set -e
if [[ $1 == t* ]]; then
exec gti "${1#t}"
fi
>&2 printf 'command not found: gi\n'
exit 127
@tonyseek
Copy link
Author

tonyseek commented Mar 9, 2023

  • Fedora/CentOS: dnf install gti sl
  • Arch Linux: pacman -Sy gti sl
  • Debian/Ubuntu: apt install gti sl
  • macOS: brew install gti sl
mkdir -p ~/.local/bin
wget -O ~/.local/bin/gi https://gist.github.com/tonyseek/d6665d9cc18b154f48943898643b8268/raw/a4cad49ef5c3e4b92df4afd2ba6f104a818e5036/gi
chmod +x ~/.local/bin/gi 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment