diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-24 10:17:28 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-24 10:17:28 +0100 |
commit | b5ba5329c7e2722d50266ecd25962a5b86a74cda (patch) | |
tree | cd2401fc493600989edfeadcf246b2e07b1322f5 | |
parent | e1a9740cd43e60526b74f7a773c9d1ea0f060b68 (diff) |
[Prompts] specific Q prompt with TARGET displayed
-rw-r--r-- | net:foret/Prompts.zsh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net:foret/Prompts.zsh b/net:foret/Prompts.zsh new file mode 100644 index 0000000..b04648a --- /dev/null +++ b/net:foret/Prompts.zsh @@ -0,0 +1,18 @@ +## +## Part of configuration files for Zsh4 +## AUTHOR: Hugues Hiegel <hugues@hiegel.fr> +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## + +two_lines_prompt () +{ + ## Le prompt le plus magnifique du monde, et c'est le mien ! + # Affiche l'user, l'host, le tty et le pwd. Rien que ça... + PS1=$AGENTS$MAILSTAT$ERROR$BATTERY$C_$prompt_colors[bar]$_C$STLINUX$HBAR$DATE" +"$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m"$C_$prompt_colors[display]$_C"${DISPLAY:+($DISPLAY)} "$CURDIR$CVSTAG$SVNREV$GITBRANCH$HGBRANCH" "$C_$prompt_colors[soft_generic]$_C${TARGET:+[}$C_$prompt_colors[bold_generic]$_C${TARGET:+$TARGET}$C_$prompt_colors[soft_generic]$_C${TARGET:+] }$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " + +} |