/xiny

CLI tool to browse Learn X in Y Minutes https://learnxinyminutes.com/

Primary LanguageShell

xiny - Learn X in Y Minutes CLI tool

Learn X in Y minutes is a nice resource for reference or introduction to many languages. It helps to quickly grasp syntax of language and how it behaves. Inspired by man utility and cheat.sh I created small bash script which fetches example code from the website right into your terminal.

Usage

It's pretty straightforward:

# download script
curl -O https://raw.githubusercontent.com/arsenlosenko/xiny/master/xiny

# you can use plain old bash
bash xiny python

# or make this file executable:
chmod +x xiny
./xiny python

# and go even further, by creating an alias, so it could be called from anywhere easily:
alias xiny="$PWD/xiny"

# to make it usable throughout your system you can also copy executable into /usr/local/bin/ and /usr/bin/
cp xiny /usr/bin/
cp xiny /usr/local/bin/

# and use it
xiny python