Sponsored Content
Operating Systems AIX Unable to save my configurationsettings Post 302253228 by ravager on Friday 31st of October 2008 08:23:58 AM
Old 10-31-2008
Your setting look like it is clearing the screen and when you use sudo it is not using your settings





Here is a cool thing to try with your .profile as well

#PS1=^[[35m`uname -n`':^[[31m${PWD}#'^[[33m
PS1=^[[35m`uname -n`^[[34m`whoami`':^[[36m${PWD}#'^[[33m
#PS1=^[[32m `uname -n`^[[34m`whoami`':^[[31m${PWD}#'^[[33m
alias ll='ls -larti'



I have this setup in my profile because it adds colors to my profile
The way to set this up is to do the following on your system as you can not just copy this config

In your home dir

tput smso >> .profile
tput rmso >> .profile

vi .profile

at the end of your profile you will find the control code for the tput settings

^[[7m ^[[33m

Depending on your setting this may look different

Split the 2 functions
^[[7m Now you can change this 7 to numbers (31 - 36 ) for different colors

^[[33m

Now using this change your PS1 to look like this
PS1=^[[35m`uname -n`^[[34m`whoami`':^[[36m${PWD}#'^[[33m

Cat .profile and see if you like


Cheers
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

save me!

Hi! can anyone tell me how to save a file from command line? Any help appreciated. (2 Replies)
Discussion started by: hufs375
2 Replies

2. Programming

cannot save file...

Hello! I have a problem: I compile some function, which must save file: ===================== // prog.cpp void save_file(){ FILE *fs = fopen("file.txt", "w"); if(!fs) cerr<< "cannot save"; fprintf(fs, "This is a text file."); fclose(fs) } ===================== If i compile it from... (8 Replies)
Discussion started by: szzz
8 Replies

3. UNIX for Dummies Questions & Answers

how to save files?

i just typed out a letter but want to hang on to it i typed it out in vi and was wondering how to save and exit from it? also how do you S&E from emacs since those are the two editors i mainly use any help would be appreciated (2 Replies)
Discussion started by: hiei
2 Replies

4. Shell Programming and Scripting

save

hi i would like someone to assist me to find out how i can Write a script called save which copies a file into a special directory, and another called recover which copies a file back out of the special directory. The user of the script should not be aware of the location of the special directory... (2 Replies)
Discussion started by: swainaina
2 Replies

5. UNIX for Dummies Questions & Answers

can't save crontab with vi

I edit crontab with vi editor, i delete the lines i wanted, but i can't save! i tried the :w, :wq, ZZ commands and it seems like vi is unfamiliar with it. any suggestions? (3 Replies)
Discussion started by: idan_cn
3 Replies

6. UNIX for Advanced & Expert Users

Can't save a file

There is a file A.lcf. I am updating the file and saving it . But as soon as I am logging off and then logging in I am finding that the updated changes are not there in the file. (5 Replies)
Discussion started by: suchismitasuchi
5 Replies

7. Shell Programming and Scripting

Save cURL verbose output to file or do it like browser "save as.."

hi there ! i have exactly the same problem like this guy here https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html i am not able to save the curl verbose output.. the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies

8. UNIX for Dummies Questions & Answers

how to save changes to a file

is i want to sort or delete lines etc etc to a file, how do i save the changes. example i do sort file > file when i do cat file, all data is erased. thanks. (2 Replies)
Discussion started by: hobiwhenuknowme
2 Replies

9. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below: Core Utilization CoreId %Usr %Sys %Total ------ ----- ----- ------ 5 4.91 0.01 4.92 6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
fvwm-bug(1)							   Fvwm Modules 						       fvwm-bug(1)

NAME
fvwm-bug - report a bug in fvwm SYNOPSIS
fvwm-bug [--help] [--version] [address] DESCRIPTION
fvwm-bug is a shell script to help the user compose and mail bug reports concerning fvwm in a standard format. fvwm-bug invokes the editor specified by the environment variable EDITOR on a temporary copy of the bug report format outline. The user must fill in the appropriate fields and exit the editor. fvwm-bug then mails the completed report to the local fvwm maintainer, the fvwm workers list fvwm-work- ers@fvwm.org, or address. If the report cannot be mailed, it is saved in the file dead.fvwm-bug in the invoking user's home directory. The bug report format outline consists of several sections. The first section provides information about the machine, operating system, the fvwm version, and the compilation environment. The second section should be filled in with a description of the bug. The third sec- tion should be a description of how to reproduce the bug. The optional fourth section is for a proposed fix. Fixes are encouraged. ENVIRONMENT
fvwm-bug will utilize the following environment variables if they exist: EDITOR Specifies the preferred editor. If EDITOR is not set, fvwm-bug defaults to emacs. HOME Directory in which the failed bug report is saved if the mail fails. Fvwm 7 May 208 (2.5.26) fvwm-bug(1)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy