mirror of
https://github.com/chubin/wttr.in
synced 2025-01-11 19:48:45 +00:00
added iterm2 demo page
This commit is contained in:
parent
6038296312
commit
a3bf070bb3
3 changed files with 4 additions and 1 deletions
|
@ -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\
|
||||
|
|
1
share/iterm2.txt
Normal file
1
share/iterm2.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue