OpenText product name changes coming to the community soon! Learn more.

Wikis - Page

Tweaking NPUM

0 Likes
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!

Labels:

How To-Best Practice
Comment List
Related
Recommended