Browse Source

added iterm2 demo page

pull/431/head
Igor Chubin 6 years ago
parent
commit
a3bf070bb3
3 changed files with 4 additions and 1 deletions
  1. +1
    -1
      lib/globals.py
  2. +2
    -0
      lib/wttr_srv.py
  3. +1
    -0
      share/iterm2.txt

+ 1
- 1
lib/globals.py View File

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


+ 2
- 0
lib/wttr_srv.py View File

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


+ 1
- 0
share/iterm2.txt
File diff suppressed because it is too large
View File


Loading…
Cancel
Save