Solved

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

Posted on 2014-11-24
5
380 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now