Improve prefix helper

This commit is contained in:
Valentin Gehrke 2018-01-23 14:55:49 +01:00
parent 0ef896007b
commit 490823ee10

View file

@ -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"
}