How to set colorscheme for a shell while/after logging in?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to set colorscheme for a shell while/after logging in?
# 1  
Old 03-30-2015
How to set colorscheme for a shell while/after logging in?

I am trying to put the below in a file .vimrc and sourced the file, however when i vi any file it is not showing/reflecting color scheme i wanted, Is there any way i can make this work? we use common application account to log in and by default it is CSH and later we change the shell to KSH. I want to explicitly change this only for my session.

.vim.rc
Code:
set syntax on
set colorscheme murphy
set hlsearch on
HISTFILE=/tmp/.ksh_history.$$

Sourcing
. ./.vim.rc
# 2  
Old 03-30-2015
Usually, the interpretation of color is done by the terminal emulator (konsole, gnome-terminal, etc.). So usually that's a setting of those programs. There is also a way to set the color palette for vt's as well.

Does that make sense?
# 3  
Old 03-30-2015
sorry i don't think i understand the solution you are proposing for my question.
# 4  
Old 03-30-2015
Alter the colors in your terminal program, not the shell. Shell doesn't have a concept of "color scheme".
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies

2. Shell Programming and Scripting

How to login with other set of credentials while remote logging?

Below is the code. I need to login into the router if the 1st set of credentials are correct.. if wrong... then it has to check with 2nd set of credentials.. => if the credentials are correct... then it should continue.. => if the credentials are wrong(should not check for 2nd time... then... (0 Replies)
Discussion started by: scriptscript
0 Replies

3. Shell Programming and Scripting

Logging into device with other set of credentials

If I run the below code... it will login into the router and then changes to privilege mode and then stores the running configuration information to an array. In this program, I have included the username and password . In case the username and password is wrong.. it will re login for 2 times... (0 Replies)
Discussion started by: scriptscript
0 Replies

4. UNIX and Linux Applications

Logging in to the GUI from the shell

I have an Ubuntu 12.04 LTS server running GNOME shell,that I occassionly have to remotely access to perform some maintenance. I usually vpnc into the network and then simply use vncviewer to access the Gnome GUI desktop for testing,given that the account is logged in. The other day I had to reboot... (4 Replies)
Discussion started by: metallica1973
4 Replies

5. SuSE

How to change default vi colorscheme without root access

SUSE Linux Enterprise Server v11 Hi guys, I don't have root access. So, I can't change the default colorscheme for my vim editor. I do have an environment variable for my id that says: EDITOR=/usr/bin/vi export EDITOR I tried adding /usr/share/vim/vim72/colors/desert.vim to it.... (2 Replies)
Discussion started by: dexter126
2 Replies

6. UNIX for Advanced & Expert Users

Vim colorscheme info

I wanted to point this out. It took me a long time figure out how to find what color schemes I have. How to use a vi color scheme | vi vim color scheme colorscheme | devdaily.com I recommend just using this command. Every system that I have tried has desert.vim so that is why I searched for... (0 Replies)
Discussion started by: cokedude
0 Replies

7. Solaris

shell command logging

Does anyone have a simple method of logging all shell commands typed by a user (csh in our case)? - I could enable auditing, but this would be overkill - I could enable process accounting, but AFAIK, this does not log arguments Thanks all. (2 Replies)
Discussion started by: minkie
2 Replies

8. Shell Programming and Scripting

logging in Shell script

How to I write to a log file all the output that is displaying on the screen? with time stamp. thankx. (3 Replies)
Discussion started by: laila63
3 Replies
Login or Register to Ask a Question