From: Dmitry Fedotov Date: Tue, 12 Jan 2021 20:22:16 +0000 (+0300) Subject: Add powerline-shell config X-Git-Url: https://www.git.dmfe.net/?a=commitdiff_plain;h=235b188845a3770c1d3e7e498213b80c253409c3;p=dotfiles Add powerline-shell config --- diff --git a/config/powerline-shell/config.json b/config/powerline-shell/config.json new file mode 100644 index 0000000..3a37dda --- /dev/null +++ b/config/powerline-shell/config.json @@ -0,0 +1,15 @@ +{ + "segments": [ + "virtual_env", + "ssh", + "cwd", + "git", + "hg", + "jobs" + ], + "cwd" : { + "mode" : "plain", + "max_depth": 3 + }, + "theme": "gruvbox" +} diff --git a/shell/init_scripts/prompt_power.mrc b/shell/init_scripts/prompt_power.mrc index 04899d0..3478186 100644 --- a/shell/init_scripts/prompt_power.mrc +++ b/shell/init_scripts/prompt_power.mrc @@ -1,9 +1,9 @@ -# __ -# ____ _________ ____ ___ ____ / /_ ____ ____ _ _____ _____ -# / __ \/ ___/ __ \/ __ `__ \/ __ \/ __/ / __ \/ __ \ | /| / / _ \/ ___/ -# _ / /_/ / / / /_/ / / / / / / /_/ / /_ / /_/ / /_/ / |/ |/ / __/ / -#(_) .___/_/ \____/_/ /_/ /_/ .___/\__/_____/ .___/\____/|__/|__/\___/_/ -# /_/ /_/ /_____/_/ +# __ +# ____ _________ ____ ___ ____ / /_ +# / __ \/ ___/ __ \/ __ `__ \/ __ \/ __/ +# _ / /_/ / / / /_/ / / / / / / /_/ / /_ +# (_) .___/_/ \____/_/ /_/ /_/ .___/\__/ +# /_/ /_/ function _update_ps1() { PS1=$(powerline-shell $?)