From 490823ee10f48a3a19f10f9f2f8291e4a8e14fb8 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 23 Jan 2018 14:55:49 +0100 Subject: [PATCH] Improve prefix helper --- zsh/.zsh/10-helpers.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.zsh/10-helpers.zsh b/zsh/.zsh/10-helpers.zsh index f094a06..7104abc 100644 --- a/zsh/.zsh/10-helpers.zsh +++ b/zsh/.zsh/10-helpers.zsh @@ -36,6 +36,7 @@ ssh-fingerprint() { ssh-keygen -lf <(ssh-keyscan -p $PORT $SERVER 2>/dev/null) } +SAVEDPROMPT="$PROMPT" prefix() { - export PROMPT="($1)$PROMPT" + export PROMPT="($1)$SAVEDPROMPT" }