I just started using NPUM in the job, and I realized it is pksh based, which can be a little strange to use at first. Here’s how you can refine a few things to make this great tool even better.

At the first login, I noticed some points:

1. No hostname in the prompt
2. No $PWD in the prompt
3. No command autocomplete
4. Several missing commands

NPUM01

As always I need to confirm where I am:

[billy@]$ echo $SHELL
/usr/bin/rush
[billy@]$ file /usr/bin/rush
/usr/bin/rush: symbolic link to `/usr/bin/pcksh'
[billy@]$

NPUM02

I told you!

So, point 1 and 2

We need to manually set the prompt. I used this (In ~/.profile):

HNAME=`hostname`
export PS1='${USER}@${HNAME%%.*}:/${PWD##*/} $ '

NPUM03

Much better, right?

Point 3

At this point, I tested some vim stuff but it really didn’t convince me, finally I used:

bind ^i=complete

Login again or:

source ~/.profile

I missed you TAB!

Point 4
That is what NPUM does!

Do you have more improvements? Share them!

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
debianized
Jun 24, 2013
11:15 am
Reads:
1,561
Score:
Unrated