mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 09:38:29 +02:00
Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
e4417b2d65 | |||
eda53cccd6 | |||
ccfe2a9cbd | |||
301203f268 | |||
9cd4bdd6d7 | |||
7b895adee5 | |||
b77b9e8541 | |||
d68fb456ba | |||
d7d033c908 | |||
fa4b482832 | |||
cf8893ec5f | |||
0a3fd3559c | |||
6a4414f538 | |||
538aeee2b2 | |||
371c0af156 |
19
README.md
19
README.md
@ -9,6 +9,10 @@ remember.
|
||||
|
||||
`cheat` depends only on `python` and `pip`.
|
||||
|
||||
PyPI status:
|
||||
|
||||
[](https://pypi.python.org/pypi/cheat/)
|
||||
[](https://pypi.python.org/pypi/cheat/)
|
||||
|
||||
Example
|
||||
-------
|
||||
@ -45,6 +49,14 @@ to store notes on your favorite cookie recipes, feel free.
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
### Using pip ###
|
||||
|
||||
sudo pip install cheat
|
||||
|
||||
|
||||
### Manually ###
|
||||
|
||||
First install the required python dependencies with:
|
||||
|
||||
sudo pip install docopt pygments
|
||||
@ -104,6 +116,13 @@ enable this feature, set a `CHEATCOLORS` environment variable:
|
||||
|
||||
export CHEATCOLORS=true
|
||||
|
||||
### Enabling Command-line Autocompletion ###
|
||||
The `cheat/autocompletion` directory contains scripts to enable command-line
|
||||
autocompletion for various shells. To activate autocompletion, simply copy the
|
||||
appropriate script to the appropriate path on your system. (The "appropriate
|
||||
path" will vary on a per-platform basis, so this documentation shall not
|
||||
speculate as to where that may be.)
|
||||
|
||||
|
||||
Related Projects
|
||||
----------------
|
||||
|
@ -38,7 +38,7 @@ from docopt import docopt
|
||||
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.0.5')
|
||||
options = docopt(__doc__, version='cheat 2.0.9')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
|
@ -1,3 +1,3 @@
|
||||
import sheet
|
||||
import sheets
|
||||
import utils
|
||||
from . import sheet
|
||||
from . import sheets
|
||||
from . import utils
|
||||
|
@ -23,7 +23,7 @@ def colorize(sheet_content):
|
||||
|
||||
def die(message):
|
||||
""" Prints a message to stderr and then terminates """
|
||||
warn (message)
|
||||
warn(message)
|
||||
exit(1)
|
||||
|
||||
|
||||
|
14
setup.py
14
setup.py
@ -1,18 +1,9 @@
|
||||
from distutils.core import setup
|
||||
import os
|
||||
|
||||
data = [
|
||||
('/usr/share/zsh/site-functions', ['cheat/autocompletion/_cheat.zsh']),
|
||||
('/etc/bash_completion.d' , ['cheat/autocompletion/cheat.bash']),
|
||||
('/usr/share/fish/completions' , ['cheat/autocompletion/cheat.fish'])
|
||||
]
|
||||
|
||||
if os.name == 'nt':
|
||||
data = []
|
||||
|
||||
setup(
|
||||
name = 'cheat',
|
||||
version = '2.0.5',
|
||||
version = '2.0.9',
|
||||
author = 'Chris Lane',
|
||||
author_email = 'chris@chris-allen-lane.com',
|
||||
license = 'GPL3',
|
||||
@ -29,8 +20,7 @@ setup(
|
||||
package_data = {
|
||||
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
|
||||
},
|
||||
scripts = ['bin/cheat'],
|
||||
data_files = data,
|
||||
scripts = ['bin/cheat'],
|
||||
install_requires = [
|
||||
'docopt >= 0.6.1',
|
||||
'pygments >= 1.6.0',
|
||||
|
Reference in New Issue
Block a user