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"
|
"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_FILE = os.environ['HOME'] + '/.ip2location.key'
|
||||||
IP2LOCATION_KEY = None
|
IP2LOCATION_KEY = None
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,8 @@ def show_text_file(name, lang):
|
||||||
text = text.replace('PARTIAL_TRANSLATION', ' '.join(PARTIAL_TRANSLATION))
|
text = text.replace('PARTIAL_TRANSLATION', ' '.join(PARTIAL_TRANSLATION))
|
||||||
elif name == ":bash.function":
|
elif name == ":bash.function":
|
||||||
text = open(BASH_FUNCTION_FILE, 'r').read()
|
text = open(BASH_FUNCTION_FILE, 'r').read()
|
||||||
|
elif name == ":iterm2":
|
||||||
|
text = open("share/iterm2.txt", 'r').read()
|
||||||
elif name == ":translation":
|
elif name == ":translation":
|
||||||
text = open(TRANSLATION_FILE, 'r').read()
|
text = open(TRANSLATION_FILE, 'r').read()
|
||||||
text = text\
|
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…
Add table
Reference in a new issue