├── install.sh └── README.md /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # install.sh 4 | # 5 | # Installs git alias "yolo". 6 | 7 | if [[ "$EUID" -eq 0 ]]; then 8 | flag="system" 9 | else 10 | >&2 echo 'Please yolo harder!' 11 | flag="global" 12 | fi 13 | 14 | echo "Setting up git $flag alias: yolo" 15 | cmd='git add -A && git commit -am "`curl -sL http://whatthecommit.com/index.txt`" && git push -f origin main' 16 | git config --$flag alias.yolo \!"$cmd" 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # yolo 2 | 3 | `yolo`, a git alias. 4 | 5 | ## the alias 6 | 7 | The alias runs this command: 8 | 9 | ```sh 10 | git add -A && \ 11 | git commit -am "`curl -sL https://whatthecommit.com/index.txt`" && \ 12 | git push -f origin master 13 | ``` 14 | 15 | ## installation 16 | 17 | ```sh 18 | curl -L https://raw.githubusercontent.com/atongen/yolo/main/install.sh | sudo bash 19 | ``` 20 | 21 | ## contributing 22 | 23 | * install as described in the previous step 24 | * fork & clone the repo 25 | * make your changes 26 | * `git yolo` 27 | --------------------------------------------------------------------------------