1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 19:43:33 +03:00

Use OS packages

This commit is contained in:
Igor Chubin 2018-07-29 22:31:01 +02:00 committed by GitHub
parent a441c4d7ed
commit 90c1b97acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,10 +18,17 @@ TEMPLATES = os.path.join(MYDIR, 'share/templates')
STATIC = os.path.join(MYDIR, 'share/static')
PATH_VIM_ENVIRONMENT = os.path.join(MYDIR, 'share/vim')
PATH_TLDR_PAGES = os.path.join(MYDIR, "cheatsheets/tldr/*/*.md")
PATH_CHEAT_PAGES = os.path.join(MYDIR, "cheatsheets/cheat/*")
PATH_CHEAT_SHEETS = os.path.join(MYDIR, "cheatsheets/sheets/")
PATH_CHEAT_SHEETS_SPOOL = os.path.join(MYDIR, "cheatsheets/spool/")
USE_OS_PACKAGES = True # change it False if you pull cheat sheets repositories from GitHub
if USE_OS_PACKAGES:
PATH_TLDR_PAGES = "/home/igor/.tldr/cache/pages/*/*.md"
PATH_CHEAT_PAGES = "/usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/*"
PATH_CHEAT_SHEETS = "/home/igor/cheat.sheets/sheets/"
PATH_CHEAT_SHEETS_SPOOL = "/home/igor/cheat.sheets/spool/"
else:
PATH_TLDR_PAGES = os.path.join(MYDIR, "cheatsheets/tldr/*/*.md")
PATH_CHEAT_PAGES = os.path.join(MYDIR, "cheatsheets/cheat/*")
PATH_CHEAT_SHEETS = os.path.join(MYDIR, "cheatsheets/sheets/")
PATH_CHEAT_SHEETS_SPOOL = os.path.join(MYDIR, "cheatsheets/spool/")
COLOR_STYLES = sorted(list(get_all_styles()))