Solved

linux, PS1 settings : how to customize it for font size

Posted on 2014-11-24
5
414 Views
Last Modified: 2014-12-01
I have below setting for my PS1.


export PS1="\e[1;33m\u: \w $ \e[m"


I would like to increase PS1 values - to increase font.
please advice how to custmise for the same
0
Comment
Question by:mac_g
  • 2
  • 2
5 Comments
 
LVL 4

Assisted Solution

by:popesy
popesy earned 333 total points
ID: 40461773
Hi

Do you need this for the console or are you using a remote access utility like putty etc.?

If it is the latter, you can set your font/appearance for the terminal window from within the utility itself.

Cheers, JP.
0
 
LVL 19

Assisted Solution

by:jools
jools earned 167 total points
ID: 40461799
You cant set font size in a PS1 variable, you should do this on the terminal options
0
 

Accepted Solution

by:
mac_g earned 0 total points
ID: 40461906
NOT console, only  PS1.

please let me know navigation for the same
0
 
LVL 4

Assisted Solution

by:popesy
popesy earned 333 total points
ID: 40461951
Hi mac_g

Sorry, do you mean that you only want to set the font using the PS1 variable?

There is a way of setting the font other than the terminal too; I haven't used this method before, but it seems that the 'setfont' command exists to allow you to set the console font using a predefined console font file, like;

setfont /path/to/fontfile

Open in new window


You can set this up in the default profile/bashrc to configure your environment.

If you need the terminal window utility option (like putty) please say, it is a trivial task.


Cheers, JP
0
 

Author Closing Comment

by:mac_g
ID: 40473314
EE >>
Provide a Reason Please state your reason for accepting your own comment as the solution. If additional information would assist others in understanding your solution, please add that information below
<<


I have not selected my name still displaying above message.
please fix this issue
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux 13 109
error while installing php56 in redhat enterprise linux 20 77
Syslog-ng works. Now what? How to filter and manage? 8 93
NFS v4 7 24
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question