Tweaking NPUM

debianized

By: debianized

June 24, 2013 11:15 am

Reads: 309

Comments:0

Rating:5.0

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!

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
Tweaking NPUM, 5.0 out of 5 based on 1 rating

Tags: , , , ,
Categories: Privileged User Manager, Technical Solutions

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.

Comment