Compare commits

...

6 Commits
2.0.5 ... 2.0.7

Author SHA1 Message Date
d7d033c908 Version bump 2014-05-28 21:02:27 -04:00
fa4b482832 Merge branch 'py3-fix' of github.com:chid/cheat into chid-py3-fix
* 'py3-fix' of github.com:chid/cheat:
  simple py3 import change
2014-05-28 21:00:52 -04:00
cf8893ec5f Merge pull request #165 from chrisallenlane/no-autocomplete
Resolves #160
2014-05-28 20:51:11 -04:00
0a3fd3559c Resolves #160
The `setup.py` script no longer attempts to install files to privileged
system directories. (Previously, it attempted to do this in order to
enable command-line autocompletion.) In lieu of doing this within the
installer directly, I have simply included brief instructions explaining
how to configure this manually.

Version bumped accordingly.
2014-05-28 20:49:56 -04:00
6a4414f538 simple py3 import change 2014-05-29 09:56:54 +10:00
371c0af156 Trivial
Deleted an unneeded space character.
2014-05-25 23:05:26 -04:00
6 changed files with 14 additions and 17 deletions

View File

@ -104,6 +104,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
----------------

View File

@ -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.7')
# list directories
if options['--directories']:

View File

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

View File

@ -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)

View File

@ -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.7',
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',