├── LICENSE ├── README.md ├── github.sh ├── install.sh └── install_latex.sh /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Github for Termux (Android) 2 | Hello and welcome to my Github channel. I found the lack of any great Google Play(tm) implementations of git, including reliable `git push -u origin master` options, disturbing. So now I can use Termux instead. This repository will help you recreate my setup so you can begin doing your programming on a terminal with letters so small it hurts your brain today! 3 | 4 | ## 1. Download this repo on your Android (r) Device(tm), and install Termux too 5 | You should be able to do this. Btw check out Termux:API. 6 | 7 | ## 2. Allow Termux to access internal storage 8 | Run `termux-setup-storage` and click on "allow" when Termux asks to see your files, folders, photos, hopes and dreams. 9 | 10 | ## 3. Install from the repo 11 | In Termux, navigate (by any means necessary) to `~/storage/`. Note that in modern version of Android the "documents" folder isn't immediately in `~/storage/` anymore ((r)_(r)), but is chilling in `~/storage/shared/`. 12 | 13 | In order to install `git` and copy the relevant script to `~`, run the following commands: 14 | ```bash 15 | bash intall.sh 16 | echo "Installation completed" 17 | ``` 18 | Now that that's done, you may want to add this nifty alias to your `~/.bashrc`: 19 | ```bash 20 | alias github = "bash ~/github.sh" 21 | ``` 22 | 23 | ## 4. Install LaTeX (optional) 24 | I've installed \LaTeX on Termux too. I didn't get to run all the packages I wanted (notably lipsum and wasysym), but the once I've got cover my every need and desire. Use 25 | ```bash 26 | bash install_latex.sh 27 | ``` 28 | to install. It will probably take a long time since it needs to check the CTAN a bidgjilion times. 29 | 30 | ## 5. Usage 31 | Use `git status` to check git status (duh), and then use `github ""` to commit the changes and push it to the master origin. (No, currently there's no option to change the branch.) I personally use [SSH](https://help.github.com/en/articles/connecting-to-github-with-ssh) to make things more convenient. 32 | -------------------------------------------------------------------------------- /github.sh: -------------------------------------------------------------------------------- 1 | #/usr/bin/bash 2 | if [ -z $1 ]; then 3 | echo "Please add a comment!" 4 | exit 0 5 | fi 6 | 7 | git add -A 8 | git commit -m "$1" 9 | git push -u origin master 10 | 11 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #/usr/bin/bash 2 | pkg install git 3 | cp github.sh ~/github.sh 4 | # if you want you can add the following line to your .bashrc: 5 | # alias github = "bash ~/github.sh" -------------------------------------------------------------------------------- /install_latex.sh: -------------------------------------------------------------------------------- 1 | #/usr/bin/bash 2 | pkg install texlive 3 | tlmgr install babel babel-dutch # or babel- 4 | tlmgr install doublestroke hyperref paracol multicol multirow cancel enumitem caption 5 | tlmgr install graphicx float todonotes pgf tikz-cd xcolor mathtools wrapfig was --------------------------------------------------------------------------------