Last active
December 4, 2017 14:04
-
-
Save tsolar/a81fe377a335c12836603c4c3c8ae43a to your computer and use it in GitHub Desktop.
powershell config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"segments": [ | |
"time", | |
"ruby_version", | |
"virtual_env", | |
"username", | |
"hostname", | |
"ssh", | |
"cwd", | |
"git", | |
"hg", | |
"jobs", | |
"root" | |
], | |
"hostname": { "colorize": true }, | |
"cwd": { "mode": "plain" } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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