<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to: Change / Setup bash custom prompt (PS1)</title> <atom:link href="http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178709</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Tue, 17 Jan 2012 11:27:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178709</guid> <description>To assign an variable use the following syntax. No need to echo it:
&lt;pre&gt;
x=&quot;$PS1&quot;
echo &quot;x is $x&quot;
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>To assign an variable use the following syntax. No need to echo it:</p><pre>
x="$PS1"
echo "x is $x"
</pre>]]></content:encoded> </item> <item><title>By: Jan</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178708</link> <dc:creator>Jan</dc:creator> <pubDate>Tue, 17 Jan 2012 11:14:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178708</guid> <description>try x=`echo $PS1`</description> <content:encoded><![CDATA[<p>try x=`echo $PS1`</p> ]]></content:encoded> </item> <item><title>By: deepak</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178053</link> <dc:creator>deepak</dc:creator> <pubDate>Thu, 05 Jan 2012 19:58:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-178053</guid> <description>how to do $HIBI
i tried PS1=&quot;$HIBI&quot; it changes the prompt to blank character</description> <content:encoded><![CDATA[<p>how to do $HIBI<br
/> i tried PS1=&#8221;$HIBI&#8221; it changes the prompt to blank character</p> ]]></content:encoded> </item> <item><title>By: Pedro Inácio</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-174596</link> <dc:creator>Pedro Inácio</dc:creator> <pubDate>Mon, 03 Oct 2011 13:15:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-174596</guid> <description>Thanks</description> <content:encoded><![CDATA[<p>Thanks</p> ]]></content:encoded> </item> <item><title>By: felipe1982</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-173739</link> <dc:creator>felipe1982</dc:creator> <pubDate>Wed, 07 Sep 2011 04:38:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-173739</guid> <description>&gt; On slackware, I simply want:
&gt; /home/steve $
&gt; I su to root, then I want
&gt; /home/steve #
put this into your ~/.bashrc
export PS1=&quot;\w \\$ &quot; #note doublebackslash$
---- test ----
[user@redhat5 ~]$ export PS1=&quot;\w \\$ &quot;
~ $ su
Password:
~ #</description> <content:encoded><![CDATA[<p>&gt; On slackware, I simply want:<br
/> &gt; /home/steve $<br
/> &gt; I su to root, then I want<br
/> &gt; /home/steve #</p><p>put this into your ~/.bashrc<br
/> export PS1=&#8221;\w \\$ &#8221; #note doublebackslash$<br
/> &#8212;- test &#8212;-<br
/> [user@redhat5 ~]$ export PS1=&#8221;\w \\$ &#8221;<br
/> ~ $ su<br
/> Password:<br
/> ~ #</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-172643</link> <dc:creator>Mike</dc:creator> <pubDate>Thu, 21 Jul 2011 20:47:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-172643</guid> <description>Since I&#039;m not a bash-geek it took me several days to ... understand how that all works but I&#039;ve figured it out at last and so I played around and this is my PS1 for now:
PS1=&quot;\n\[\e[0;36m\]┌─[\[\e[0m\]\[\e[1;33m\]\u\[\e[0m\]\[\e[1;36m\] @ \[\e[0m\]\[\e[1;33m\]\h\[\e[0m\]\[\e[0;36m\]]─[\[\e[0m\]\[\e[1;34m\]\w\[\e[0m\]\[\e[0;36m\]]\[\e[0;36m\]─[\[\e[0m\]\[\e[0;31m\]\!\[\e[0m\]\[\e[0;36m\]]\[\e[0m\]\n\[\e[0;36m\]└─[\[\e[0m\]\[\e[1;37m\]\$\[\e[0m\]\[\e[0;36m\]]› \[\e[0m\]&quot;
How do you like this one?</description> <content:encoded><![CDATA[<p>Since I&#8217;m not a bash-geek it took me several days to &#8230; understand how that all works but I&#8217;ve figured it out at last and so I played around and this is my PS1 for now:</p><p>PS1=&#8221;\n\[\e[0;36m\]┌─[\[\e[0m\]\[\e[1;33m\]\u\[\e[0m\]\[\e[1;36m\] @ \[\e[0m\]\[\e[1;33m\]\h\[\e[0m\]\[\e[0;36m\]]─[\[\e[0m\]\[\e[1;34m\]\w\[\e[0m\]\[\e[0;36m\]]\[\e[0;36m\]─[\[\e[0m\]\[\e[0;31m\]\!\[\e[0m\]\[\e[0;36m\]]\[\e[0m\]\n\[\e[0;36m\]└─[\[\e[0m\]\[\e[1;37m\]\$\[\e[0m\]\[\e[0;36m\]]› \[\e[0m\]&#8221;</p><p>How do you like this one?</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-171501</link> <dc:creator>Cody</dc:creator> <pubDate>Mon, 23 May 2011 13:43:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-171501</guid> <description>I just came across this link below. It may explain your issue (I admittedly did not read your post in full again, but if memory serves it is something about it being a long prompt. You may find the following useful:
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/nonprintingchars.html
The general idea may be the same (length of prompt of bash). Either way, not a bad read (the whole document I mean).</description> <content:encoded><![CDATA[<p>I just came across this link below. It may explain your issue (I admittedly did not read your post in full again, but if memory serves it is something about it being a long prompt. You may find the following useful:<br
/> <a
href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/nonprintingchars.html" rel="nofollow">http://tldp.org/HOWTO/Bash-Prompt-HOWTO/nonprintingchars.html</a></p><p>The general idea may be the same (length of prompt of bash). Either way, not a bad read (the whole document I mean).</p> ]]></content:encoded> </item> <item><title>By: JT</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170817</link> <dc:creator>JT</dc:creator> <pubDate>Fri, 22 Apr 2011 15:05:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170817</guid> <description>Thank you very much Cody, your info help me a lot to understand where/how to change console fonts. Thanks again!!</description> <content:encoded><![CDATA[<p>Thank you very much Cody, your info help me a lot to understand where/how to change console fonts. Thanks again!!</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170815</link> <dc:creator>Cody</dc:creator> <pubDate>Fri, 22 Apr 2011 14:15:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170815</guid> <description>Well a few thoughts but this is about all I can think of (I think part of the issue is I don&#039;t really follow the issue - as in where or what is being limited).
1 - I know with bash you can put newlines into prompts and it works ok. By putting \n in the prompt (just like in C and other languages).
2 - Did I see ksh ? You&#039;re using kornshell then ? It&#039;s been over 10 years since I&#039;ve used it i think. Close to if not.
3 - What IS the actual issue ? What is limited ? Are characters not being displayed right, or what ?
I think though that this should probably be addressed elsewhere; as much as I&#039;d like to help I don&#039;t want to turn this into a support place - not my blog to do that. Suggestion then: find a forum that may help (maybe even f-secure would have ideas for all I know).
Kind regards.</description> <content:encoded><![CDATA[<p>Well a few thoughts but this is about all I can think of (I think part of the issue is I don&#8217;t really follow the issue &#8211; as in where or what is being limited).</p><p>1 &#8211; I know with bash you can put newlines into prompts and it works ok. By putting \n in the prompt (just like in C and other languages).<br
/> 2 &#8211; Did I see ksh ? You&#8217;re using kornshell then ? It&#8217;s been over 10 years since I&#8217;ve used it i think. Close to if not.<br
/> 3 &#8211; What IS the actual issue ? What is limited ? Are characters not being displayed right, or what ?</p><p>I think though that this should probably be addressed elsewhere; as much as I&#8217;d like to help I don&#8217;t want to turn this into a support place &#8211; not my blog to do that. Suggestion then: find a forum that may help (maybe even f-secure would have ideas for all I know).</p><p>Kind regards.</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170814</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 14:02:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170814</guid> <description>from SUN, I get this:
/home/jpcochr
jpcochr: ceas1u2 --&gt; now is the time for all good men to come to the aid of their party!</description> <content:encoded><![CDATA[<p>from SUN, I get this:<br
/> /home/jpcochr<br
/> jpcochr: ceas1u2 &#8211;&gt; now is the time for all good men to come to the aid of their party!</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170813</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 14:00:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170813</guid> <description>this web site is goofing me up.  ignore the post below, that is not what I entered.
you note above the &gt; at the end of the line, meaning more characters after this point, but I can&#039;t display them until I move the cursor through the line, then it all shifts left.
then there is the + sign denoting more characters on either side of what is actually displayed,
then the &lt; sign denoting more characters before what is displayed.</description> <content:encoded><![CDATA[<p>this web site is goofing me up.  ignore the post below, that is not what I entered.<br
/> you note above the &gt; at the end of the line, meaning more characters after this point, but I can&#8217;t display them until I move the cursor through the line, then it all shifts left.<br
/> then there is the + sign denoting more characters on either side of what is actually displayed,<br
/> then the &lt; sign denoting more characters before what is displayed.</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170812</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 13:58:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170812</guid> <description>you note the &gt; meaning more characters after this point
the + apparently means more characters on either side of what is displayed
and the  now is the time for all good men to come to the aid of their party!</description> <content:encoded><![CDATA[<p>you note the &gt; meaning more characters after this point<br
/> the + apparently means more characters on either side of what is displayed<br
/> and the  now is the time for all good men to come to the aid of their party!</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170811</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 13:56:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170811</guid> <description>well, that didn&#039;t work.  lets try it separately.  on the LINUX server:
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;Now is the time for all good men to c &gt;
ksh: Now: not found
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt; all good men to come to the aid of t +
ksh: Now: not found
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;me to the aid of their party!         &lt;</description> <content:encoded><![CDATA[<p>well, that didn&#8217;t work.  lets try it separately.  on the LINUX server:<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;Now is the time for all good men to c &gt;<br
/> ksh: Now: not found<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt; all good men to come to the aid of t +<br
/> ksh: Now: not found<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;me to the aid of their party!         &lt;</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170810</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 13:54:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170810</guid> <description>I provided my profile information and the PS1 defintion above.  I also posted a sample of what my line looks like, but I don&#039;t think it came out visually very well on this web site.  I will try again.
on LINUX,:
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;Now is the time for all good men to c &gt;
ksh: Now: not found
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt; all good men to come to the aid of t +
ksh: Now: not found
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;me to the aid of their party!          now is the time for all good men to come to the aid of their party!</description> <content:encoded><![CDATA[<p>I provided my profile information and the PS1 defintion above.  I also posted a sample of what my line looks like, but I don&#8217;t think it came out visually very well on this web site.  I will try again.</p><p>on LINUX,:<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;Now is the time for all good men to c &gt;<br
/> ksh: Now: not found<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt; all good men to come to the aid of t +<br
/> ksh: Now: not found<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;me to the aid of their party!          now is the time for all good men to come to the aid of their party!</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170809</link> <dc:creator>Cody</dc:creator> <pubDate>Fri, 22 Apr 2011 13:18:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170809</guid> <description>One other thing: what is your PS1 variable set to ?
I missed that part (how is another question - maybe that I wrote that at around 5 or so in the morning). Maybe it&#039;s to do with that even (or that and a combination of something else).
Could very well be relevant.</description> <content:encoded><![CDATA[<p>One other thing: what is your PS1 variable set to ?<br
/> I missed that part (how is another question &#8211; maybe that I wrote that at around 5 or so in the morning). Maybe it&#8217;s to do with that even (or that and a combination of something else).</p><p>Could very well be relevant.</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170807</link> <dc:creator>Cody</dc:creator> <pubDate>Fri, 22 Apr 2011 13:15:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170807</guid> <description>Font could effect it on a normal terminal (say at the console) because of size relative to rows/cols (I realize that may not be clearly stated but I write an example later down). I see though that you use a client to ssh in so that may be of less help.
I can&#039;t say I know for sure but what I wonder is:
echo $TERM ?
and what is stty -a (for rows and cols) show on the others (Solaris etc) ? I am pretty sure stty is there though it&#039;s been a long time since i&#039;ve touched BSD, Solaris or any other Unix derivative besides Linux.
Otherwise all I can say is it&#039;s not Linux itself that&#039;s doing it - it may be a setting in that system though. Unfortunately I don&#039;t have access to a windows machine so I can&#039;t really test that part (the client).
For reference though, here&#039;s my stty -a output (on a 24&quot; screen) - my main machine:
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ;
eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
and on my server (also linux, different distro) and smaller monitor:
rows and cols is different (as I changed font yesterday) but it was before that change actually the same as above.
But indeed on the console font differences can change the amount of rows and cols.
F-Secure. Hmm. I cannot remember if they have a Linux client or not but I&#039;ll check. I unfortunately only use Xterm or the console itself.
Crazy idea: what if you start a new shell (e.g., su - user) ?
One other thought: screen shot of this phenomenon ? I can easily imagine this isn&#039;t being interpreted on my part correctly.</description> <content:encoded><![CDATA[<p>Font could effect it on a normal terminal (say at the console) because of size relative to rows/cols (I realize that may not be clearly stated but I write an example later down). I see though that you use a client to ssh in so that may be of less help.</p><p>I can&#8217;t say I know for sure but what I wonder is:</p><p>echo $TERM ?<br
/> and what is stty -a (for rows and cols) show on the others (Solaris etc) ? I am pretty sure stty is there though it&#8217;s been a long time since i&#8217;ve touched BSD, Solaris or any other Unix derivative besides Linux.</p><p>Otherwise all I can say is it&#8217;s not Linux itself that&#8217;s doing it &#8211; it may be a setting in that system though. Unfortunately I don&#8217;t have access to a windows machine so I can&#8217;t really test that part (the client).</p><p>For reference though, here&#8217;s my stty -a output (on a 24&#8243; screen) &#8211; my main machine:<br
/> speed 38400 baud; rows 24; columns 80; line = 0;<br
/> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ;<br
/> eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;<br
/> werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;<br
/> -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr<br
/> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff<br
/> -iuclc ixany imaxbel -iutf8<br
/> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0<br
/> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt<br
/> echoctl echoke</p><p>and on my server (also linux, different distro) and smaller monitor:</p><p>rows and cols is different (as I changed font yesterday) but it was before that change actually the same as above.</p><p>But indeed on the console font differences can change the amount of rows and cols.</p><p>F-Secure. Hmm. I cannot remember if they have a Linux client or not but I&#8217;ll check. I unfortunately only use Xterm or the console itself.</p><p>Crazy idea: what if you start a new shell (e.g., su &#8211; user) ?<br
/> One other thought: screen shot of this phenomenon ? I can easily imagine this isn&#8217;t being interpreted on my part correctly.</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170804</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 12:46:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170804</guid> <description>btw, we use F-Secure SSH Client v5.4 build 34 to gain access to our various servers.  We use the exact same window, same settings.  Not sure if this helps or not:
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;uname -a
Linux VMAMN14GLBSMG4 2.6.9-89.0.11.ELsmp #1 SMP Mon Aug 31 11:01:10 EDT 2009 i686 i686 i386 GNU/Linux
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;cat .profile
ME=&quot;whoami&quot;
MACHINE=&quot;uname -n&quot;
#stty erase
set -o vi
#PS1=&quot;$PWD \n
#whoami: $MACHINE --&gt; &quot;
PS1=&#039;$PWD:$USER@$HOSTNAME --&gt;&#039;
#PS1=&#039;$USER@$HOSTNAME:$PWD --&gt;&#039;
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;</description> <content:encoded><![CDATA[<p>btw, we use F-Secure SSH Client v5.4 build 34 to gain access to our various servers.  We use the exact same window, same settings.  Not sure if this helps or not:<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;uname -a<br
/> Linux VMAMN14GLBSMG4 2.6.9-89.0.11.ELsmp #1 SMP Mon Aug 31 11:01:10 EDT 2009 i686 i686 i386 GNU/Linux</p><p>/home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;cat .bash_profile<br
/> # .bash_profile</p><p># Get the aliases and functions<br
/> if [ -f ~/.bashrc ]; then<br
/> . ~/.bashrc<br
/> fi</p><p># User specific environment and startup programs</p><p>PATH=$PATH:$HOME/bin</p><p>export PATH<br
/> unset USERNAME<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;cat .profile<br
/> ME=&#8221;whoami&#8221;<br
/> MACHINE=&#8221;uname -n&#8221;<br
/> #stty erase<br
/> set -o vi</p><p>#PS1=&#8221;$PWD \n<br
/> #whoami: $MACHINE &#8211;&gt; &#8221;<br
/> PS1=&#8217;$PWD:$USER@$HOSTNAME &#8211;&gt;&#8217;<br
/> #PS1=&#8217;$USER@$HOSTNAME:$PWD &#8211;&gt;&#8217;<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;</p> ]]></content:encoded> </item> <item><title>By: John Cochran</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170803</link> <dc:creator>John Cochran</dc:creator> <pubDate>Fri, 22 Apr 2011 12:40:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170803</guid> <description>/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;stty -a
speed 38400 baud; rows 52; columns 206; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
/home/jpcochr:jpcochr@VMAMN14GLBSMG4 --&gt;can display on my command line, WHY?  &lt;
Actually, I&#039;m not sure how the font could affect this, I use the exact same terminal, ssh to numerous UNIX or SUN servers and the prompts work just fine, but when I&#039;m on a LINUX jump server all I can get is 25 characters, period, regardless of the font.  WHY is LINUX limiting the prompt to 25 characters,  Why can&#039;t I just keep typing and have the prompt go all the way to the end of the screen???</description> <content:encoded><![CDATA[<p>/home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;stty -a<br
/> speed 38400 baud; rows 52; columns 206; line = 0;<br
/> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;<br
/> -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts<br
/> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel<br
/> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0<br
/> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke<br
/> /home/jpcochr:jpcochr@VMAMN14GLBSMG4 &#8211;&gt;can display on my command line, WHY?  &lt;</p><p>Actually, I&#039;m not sure how the font could affect this, I use the exact same terminal, ssh to numerous UNIX or SUN servers and the prompts work just fine, but when I&#039;m on a LINUX jump server all I can get is 25 characters, period, regardless of the font.  WHY is LINUX limiting the prompt to 25 characters,  Why can&#039;t I just keep typing and have the prompt go all the way to the end of the screen???</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170802</link> <dc:creator>Cody</dc:creator> <pubDate>Fri, 22 Apr 2011 12:18:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170802</guid> <description>Ehm, after the $(tty) add the font file. Stupid me forgot html could get eaten!</description> <content:encoded><![CDATA[<p>Ehm, after the $(tty) add the font file. Stupid me forgot html could get eaten!</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170801</link> <dc:creator>Cody</dc:creator> <pubDate>Fri, 22 Apr 2011 12:17:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html#comment-170801</guid> <description>JT:  I actually just wrote about this yesterday.
Summary is this:
Firstly, look in /lib/kbd/consolefonts
Next, look at setfont(8)
You can use it like: setfont -C $(tty)
Lastly if that is one you like, then set SYSFONT to that (minus the extension of .psfu.gz) in /etc/sysconfig/i18n
Hope that helps (and that the hour it is here didn&#039;t get me).</description> <content:encoded><![CDATA[<p>JT:  I actually just wrote about this yesterday.</p><p>Summary is this:</p><p>Firstly, look in /lib/kbd/consolefonts<br
/> Next, look at setfont(8)<br
/> You can use it like: setfont -C $(tty)</p><p>Lastly if that is one you like, then set SYSFONT to that (minus the extension of .psfu.gz) in /etc/sysconfig/i18n</p><p>Hope that helps (and that the hour it is here didn&#8217;t get me).</p> ]]></content:encoded> </item> </channel> </rss>
