@@ -0,0 +1,556 @@
+def add_user_host_segment():%0A    import os%0A    import socket%0A%0A    if powerline.args.shell == 'bash':%0A        user = '%5C%5Cu'%0A        host = '%5C%5Ch'%0A    elif powerline.args.shell == 'zsh':%0A        user = '%25n'%0A        host = '%25m'%0A    else:%0A        user = '%25s' %25 os.getenv('USER')%0A        host = '%25s' %25 socket.gethostname().split('.')%5B0%5D%0A%0A    if os.getenv('USER') == 'root':%0A        bgcolor = Color.USERNAME_ROOT_BG%0A    else:%0A        bgcolor = Color.USERNAME_BG%0A%0A    powerline.append(' %25s@%25s ' %25 (user, host), Color.USERNAME_FG, bgcolor)%0A%0Aadd_user_host_segment()%0A%0A

add segment for combining user and host