diff options
author | Melik Manukyan <melik@archlinux.us> | 2010-06-24 18:12:34 -0700 |
---|---|---|
committer | Melik Manukyan <melik@archlinux.us> | 2010-06-24 18:12:34 -0700 |
commit | 5a0baf0e553aea4d31570a0b74015e056491ab15 (patch) | |
tree | 9fefa3d1389f6d075999f57e01eb8fa5ce818a28 | |
parent | 92d1ce799bf1aea8aecd4cfee594a42eca69d30d (diff) |
Added terminal function
-rw-r--r-- | archey | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,7 @@ display = [ 'ram', # Display RAM Usage 'cpu', # Display CPU Model 'sh', # Display Current Shell + 'term', # Display Current Terminal 'fs' # Display / Partition Usage ] @@ -183,6 +184,11 @@ def sh_display(): sh = os.getenv("SHELL").split('/')[-1].capitalize() output ('Shell', sh) +# Terminal Function +def term_display(): + term = os.getenv("TERM").split('/')[-1].capitalize() + output ('Terminal', term) + # Packages Function def packages_display(): p1 = Popen(['pacman', '-Q'], stdout=PIPE) |