Skip to content

Instantly share code, notes, and snippets.

@klynch
Last active March 15, 2022 02:24
Show Gist options
  • Save klynch/de6a62ff5d4ee42676ed71c2df052f82 to your computer and use it in GitHub Desktop.
Save klynch/de6a62ff5d4ee42676ed71c2df052f82 to your computer and use it in GitHub Desktop.
A powerline configuration file that goes in `~/.config/powerline/themes/shell/custom.json`
{
"segments": {
"left": [
{
"function": "powerline.segments.shell.mode"
},
{
"function": "powerline.segments.common.net.hostname",
"priority": 10,
"args": {
"only_if_ssh": true,
"exclude_domain": true
}
},
{
"function": "powerline.segments.common.env.user",
"priority": 30
},
{
"function": "powerline.segments.common.env.variable",
"priority": 50,
"before": "🐋 ",
"args": {
"variable": "DOCKER_MACHINE_NAME"
}
},
{
"function": "powerline.segments.common.env.virtualenv",
"priority": 50,
"before": "🐍 "
},
{
"function": "powerline.segments.shell.cwd",
"priority": 10,
"args": {
"shorten_home": true,
"dir_limit_depth": 3,
"use_path_separator": true
}
},
{
"function": "powerline.segments.shell.jobnum",
"priority": 20
},
{
"function": "powerline.segments.shell.last_pipe_status",
"priority": 10
},
{
"function": "powerline.segments.common.vcs.branch",
"priority": 40,
"args": {
"status_colors": false
}
}
],
"right": [
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment