added iterm2 demo page

pull/431/head
Igor Chubin 5 years ago
parent 6038296312
commit a3bf070bb3

@ -81,7 +81,7 @@ PLAIN_TEXT_AGENTS = [
"PowerShell"
]
PLAIN_TEXT_PAGES = [':help', ':bash.function', ':translation']
PLAIN_TEXT_PAGES = [':help', ':bash.function', ':translation', ':iterm2']
_IP2LOCATION_KEY_FILE = os.environ['HOME'] + '/.ip2location.key'
IP2LOCATION_KEY = None

@ -44,6 +44,8 @@ def show_text_file(name, lang):
text = text.replace('PARTIAL_TRANSLATION', ' '.join(PARTIAL_TRANSLATION))
elif name == ":bash.function":
text = open(BASH_FUNCTION_FILE, 'r').read()
elif name == ":iterm2":
text = open("share/iterm2.txt", 'r').read()
elif name == ":translation":
text = open(TRANSLATION_FILE, 'r').read()
text = text\

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save