Conflicts:
	setup.py
This commit is contained in:
Charley Peng 2014-05-30 12:14:33 +10:00
commit 7b895adee5
5 changed files with 13 additions and 17 deletions

View File

@ -104,6 +104,13 @@ enable this feature, set a `CHEATCOLORS` environment variable:
export CHEATCOLORS=true 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 Related Projects
---------------- ----------------

View File

@ -38,7 +38,7 @@ from docopt import docopt
if __name__ == '__main__': if __name__ == '__main__':
# parse the command-line options # parse the command-line options
options = docopt(__doc__, version='cheat 2.0.5') options = docopt(__doc__, version='cheat 2.0.7')
# list directories # list directories
if options['--directories']: if options['--directories']:

View File

@ -1,3 +1,3 @@
import sheet from . import sheet
import sheets from . import sheets
import utils from . import utils

View File

@ -44,19 +44,9 @@ class my_install_scripts(install_scripts):
with open(bat_file, 'wt') as fobj: with open(bat_file, 'wt') as fobj:
fobj.write(bat_contents) fobj.write(bat_contents)
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( setup(
name = 'cheat', name = 'cheat',
version = '2.0.5', version = '2.0.7',
author = 'Chris Lane', author = 'Chris Lane',
author_email = 'chris@chris-allen-lane.com', author_email = 'chris@chris-allen-lane.com',
license = 'GPL3', license = 'GPL3',
@ -74,7 +64,6 @@ setup(
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f] 'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
}, },
scripts = ['bin/cheat'], scripts = ['bin/cheat'],
data_files = data,
install_requires = [ install_requires = [
'docopt >= 0.6.1', 'docopt >= 0.6.1',
'pygments >= 1.6.0', 'pygments >= 1.6.0',