Add themes and segments for terminal and tmux
This commit is contained in:
parent
c5555d5637
commit
e5c864ec1b
|
@ -0,0 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def user_name():
|
||||
user_name = os.environ.get('USER')
|
||||
return {
|
||||
'contents': user_name,
|
||||
'highlight': 'user_name' if user_name != 'root' else ['user_name_root', 'user_name'],
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def user_name():
|
||||
user_name = os.environ.get('USER')
|
||||
return {
|
||||
'contents': user_name,
|
||||
'highlight': 'user_name' if user_name != 'root' else ['user_name_root', 'user_name'],
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "default",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"name": "user_name"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "default",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"name": "user_name"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue