open a codebase in your favourite editor
or clone it and open it if it is not cloned yet.
git clone git@github.com:serundeputy/o.git
Open your .zshrc
or .bashrc
file and add an alias.
alias o="python PATH_TO_WHERE_YOU_CLONED/o.py"
o -h
➜ o git:(mainline) ✗ o -h
usage: o.py [-h] [-o ORG] [-r REPO] [-c CODEDIR]
optional arguments:
-h, --help show this help message and exit
-o ORG, --org ORG the github org
-r REPO, --repo REPO the github repo
-c CODEDIR, --codedir CODEDIR
where to clone the code
for example to clone gff's neovim config:
o -o serundeputy -r gffNeovim -c ~/code