From 1b86877f9dd4c9bf512f0ea72d2126d5f3397913 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Mon, 2 Jul 2018 09:33:02 +0200 Subject: [PATCH] New prompt for vscode --- zsh.d/prompts/prompt_vscode_setup | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 zsh.d/prompts/prompt_vscode_setup diff --git a/zsh.d/prompts/prompt_vscode_setup b/zsh.d/prompts/prompt_vscode_setup new file mode 100644 index 0000000..a80da22 --- /dev/null +++ b/zsh.d/prompts/prompt_vscode_setup @@ -0,0 +1,19 @@ +function prompt_minimal_setup { +# Setup PROMPT +if `fancyTerm`; then + # We are on xterminal + W="%n@%m:%." + I="%m:%." + L="%B%3(~:...:)%2~ %#%b " + PS1="%{]2;$W%}%{]1;$I%}$L" + unset W I L + +else + # We are not on xterminal + PS1="%B%. %#%b " +fi +} + +prompt_minimal_setup + +# vim: set ts=4 sw=4 tw=0 ft=zsh :