Skip to content

Instantly share code, notes, and snippets.

@tsolar
Last active December 4, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsolar/a81fe377a335c12836603c4c3c8ae43a to your computer and use it in GitHub Desktop.
Save tsolar/a81fe377a335c12836603c4c3c8ae43a to your computer and use it in GitHub Desktop.
powershell config
{
"segments": [
"time",
"ruby_version",
"virtual_env",
"username",
"hostname",
"ssh",
"cwd",
"git",
"hg",
"jobs",
"root"
],
"hostname": { "colorize": true },
"cwd": { "mode": "plain" }
}
# powerline-shell
function _update_ps1() {
# PS1="$(~/powerline-shell/powerline-shell.py --colorize-hostname --cwd-mode plain $? 2> /dev/null)"
PS1="$(~/.local/bin/powerline-shell $? 2> /dev/null)"
}
if [ "$TERM" != "linux" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment