From e7f5e2abd5069c8710251f3f770c1780f3318d52 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 25 Nov 2011 12:58:38 +0100 Subject: [PATCH] the usual blog corrections Signed-off-by: Nico Schottelius --- blog/my-bash-and-zsh-prompt.mdwn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/blog/my-bash-and-zsh-prompt.mdwn b/blog/my-bash-and-zsh-prompt.mdwn index 144c83b2..2331abb8 100644 --- a/blog/my-bash-and-zsh-prompt.mdwn +++ b/blog/my-bash-and-zsh-prompt.mdwn @@ -1,7 +1,7 @@ [[!meta title="My Bash and Zsh prompt"]] -This article is for those who wonder how my very simple but helpful prompt -in the shell are created and the motivation behind it. +This article is for those who wonder how my very simple, but helpful prompt +in the shell is created and to learn the motivation behind it. ## How it looks like @@ -15,15 +15,15 @@ Bash: Zsh: - PS1="[%T] %B%m%b:%c%# " + PS1="[%T] %B%m%b:%c%# " ## Motivation -# I need the hostname to know on which box I am working -# Time is helpful for copy & paste in logs (and to not waste space with ***xclock***) -# Short directory name (\W, %c) is helpful, long paths make the prompt +* I need the hostname to know on which box I am working +* Time is helpful for copy & paste in logs (and to not waste space with ***xclock***) +* Short directory name (\W, %c) is helpful, long paths make the prompt unusable and I usually know which tree I am in (if not: pwd helps) -# No need for **username@** like most distros do: If I am a user, +* No need for **username@** like most distros do: If I am a user, I am ***nico*** (***$*** in bash, ***%*** in zsh). Otherwise I am root (***#***). [[!tag config sysadmin unix]]