I am using MacOSX, and I decided to change the way my terminal looks. So, I created a ~/.profile file that has only the line
( '\u' displays the current user
'\W' displays the Working dir
and the weird numbers are colors)
It works fine when I log in the Terminal, which is bash, but when I 'su', which is sh, $0 is still equal to: '-bash' instead of 'sh'.
\u and \W change to the correct ones but $0 does not.
When I run '. .profile' inside the shell it gets fixed.
How can I make the terminal always, automatically output the shell it uses?
Hello,
Try doing this:
This will keep your environment. Or use sudo and do this:
This is my prompt. If you like it fee free to use it. It lists user@server and then puts the server name followed by the directory path in the title bar. The \n puts the prompt on the next line.
I hope this helps.
I am new in shell scripting. currently i am using cygwin. My problem is
i created a profile file in my own folder. file name is first.profile in which i gave following values to variable
export a=10
now i am executing this profile file by below command
./.first.profile
it executed... (4 Replies)
Hi!
In my .profile I have a line that says export TNS_ADMIN=$HOME
I received the .profile file from a colleague who uses it to access SQL*Plus from a UNIX server. When I try the same method he uses I get ORA-12154: TNS:could not resolve the connect identifier specifiedwhich makes me think... (8 Replies)
Hi All,
I have trying to schedule an autosys job and it is failing. The shutdown script runs fine by itself from the UNIX box but fails when i try to schedule it through autosys.
I have compared user.env with auto.env (variables obtained through an autosys script) and updated my profile... (1 Reply)
for some reason my profile doesnt seem to be loading.
here is some info
$SHELL /sbin/sh
$HOME / (yup, im running at root, its a VM and im using it to learn)
created /.profile
added something simple to test, PS1="test"
logout and back in, open a terminal... prompt is still #
... (2 Replies)
Hello All,
I am using a HP-UX machine and I want to update the .profile file so that after login to my userID that will be applicable to my ID also. What I am trying to do is :
In .profile file I am trying to write in /home/userID folder:
export PATH=$PATH:$HOME:.
so that whenever I will... (3 Replies)
I am trying to execute my .profile which has the path to oracle home. But when I execute it with the below command it says nothing and when I try to echo the ORACLE_HOME I am still in my home directory itself which means it didn't get executed.
Please help how to make sure that .profile is... (6 Replies)
The “set -o vi” command won't run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info...
Running...
Generic sun4u sparc SUNW,Ultra-5_10
K shell
Here's the .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All... (12 Replies)
Hi,
i am changing something in .profile file and then esc :wq!. when i do the cat i can see the changes. but to bring the .profile in memory i have to do . .profile.but it says error while doing that is . .profile
ksh: .profile: not found.
can any body help
thanks in advance
sam71 (7 Replies)
I wanted to add /home/oracle/sql to my path so that from which ever directory i connect to sqlplus i should be able to source the .sql files sitting in /home/oracle/sql. Also,
this is what i tried but it doenst work
# Set up the search paths:
export ... (2 Replies)