.zshrc not initialized

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .zshrc not initialized
# 1  
Old 03-12-2011
.zshrc not initialized

Hi, I just updated /etc/passwd so that my default shell is zsh. After I save and make a new connection I can echo $SHELL and see /usr/bin/zsh, but my prompt still looks like bash and some env var that I setup in my local .zshrc file are not set. If I type zsh, then my prompt changes and I have my env var set.

What am I missing here?
# 2  
Old 03-12-2011
What's the output of:

ps -p$$

How do you mean by "when I make a new connection"?
# 3  
Old 03-12-2011
ps -p$$ returns the following

$ ps -p$$
     3220       1    3220       3220  con 1001 23:53:27 /usr/bin/bash

but echo $SHELL returns 

When I say make new connection, I mean open up a new terminal window connecting to the server.

Last edited by radoulov; 03-12-2011 at 01:25 PM.. Reason: Code tags, please!
# 4  
Old 03-12-2011
You're running bash, not zsh.
Are you connecting to a remote machine or
you're just opening a new terminal window on
the local one?
# 5  
Old 03-12-2011
Yeah, you actually need to relogin to use your new shell.
# 6  
Old 03-12-2011
It's a cygwin install, I am opening a new cygwin window
# 7  
Old 03-13-2011
You need to modify the bat file that starts the shell and set zsh there,
this is the content of my Cygwin.bat in the install root directory
(c:\cygwin on my notebook):

@echo off

chdir C:\cygwin\bin

rem bash --login -i

rxvt -e /bin/zsh --login -i

In addition I'm using the following .Xdefaults (to place in your home directory):

Rxvt*geometry: 135x40
Rxvt*background: #000020
Rxvt*foreground: #ffffbf
!Rxvt*borderColor: Blue
!Rxvt*scrollColor: Blue
!Rxvt*troughColor: Gray
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
! Rxvt*font: Lucida Console-12
Rxvt*font: fixedsys
Rxvt*SaveLines: 10000
Rxvt*loginShell: True
! VIM-like colors
Rxvt*color0: #000000
Rxvt*color1: #FFFFFF
Rxvt*color2: #00A800
Rxvt*color3: #FFFF00
Rxvt*color4: #0000A8
Rxvt*color5: #A800A8
Rxvt*color6: #00A8A8
Rxvt*color7: #D8D8D8
Rxvt*color8: #000000
Rxvt*color9: #FFFFFF
Rxvt*color10: #00A800
Rxvt*color11: #FFFF00
Rxvt*color12: #0000A8
Rxvt*color13: #A800A8
Rxvt*color14: #00A8A8
Rxvt*color15: #D8D8D8
! eof

Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Ubuntu

Can Scanner be Initialized from the Terminal

Hi, somewhat of a newbie with Linux, although I have been at it for about three weeks now. Is there a way to wake up or initialize my scanner with a command in the terminal? (6 Replies)
Discussion started by: klrman
6 Replies

2. Programming

swing not getting initialized when the DISPLAY is not set

I have a batch programme which will load the Spreadsheet into database.. When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI. But if the display is not set, then there is an issue... Any ideas... (3 Replies)
Discussion started by: shafi2all
3 Replies

3. Programming

Will we get SEGV if we try to “delete []” un-initialized integer pointer variable.

I have a class with an integer pointer, which I have not initialized to NULL in the constructor. For example: class myclass { private: char * name; int *site; } myclass:: myclass(....) : name(NULL) { ..... } other member function “delete “ the variable before... (2 Replies)
Discussion started by: sureshreddi_ps
2 Replies
Login or Register to Ask a Question

Featured Tech Videos