I don't like a long prompt, so I trim down the path to just the last directory name; I use:
Code:
PS1="$(uname -n):\${PWD##*/}(!)$ "
I find that is both compact and informative.
The issue with two-line prompts (for me) is that you're wasting screen lines.
If you want to get really clever, you can issue colour change directives in the prompt, or even set the window title.
But that tends to fall apart if you use a different shell or terminal emulator.
I have this script:
#!/bin/ksh
######### Environment Setup #########
PATH=/gers/nurev/menu/pub/sbin:/gers/nurev/menu/pub/bin:/gers/nurev/menu/pub/mac
:/gers/nurev/menu/adm/sbin:/gers/nurev/menu/adm/bin:/gers/nurev/menu/adm/mac:/ge... (5 Replies)
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
I've noted that in order to use commands like ifconfig, I have to prefix the commands with the directory.
/etc/profile shows that the paths should be part of the PATH environment variable; any idea where the bug is?
:confused:
# /etc/profile
# System wide environment and startup... (1 Reply)
Hi there,
I have a ftp server called atlantis. Because of the f...g french characters, I noticed something very weird. Depending on what program I use (ftp, lftp or ssh) the same character is displayed as three different ways.
On my local computer, the file is correctly displayed as "modéles".... (1 Reply)
I faced an interesting problem on my AIX servers. When I checked last logins with command last I saw that hostnames are wrong. Let say, I made login from workstation xxxxx and with the command last I saw:
root pts/2 yyyyy 5 jan 15:38 still logged in
Ping xxxxx and ping... (3 Replies)
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Hello I'm very new to Linux and shell scripting so I only know basic stuff. I'm making a script with the purpose of finding the longest string or word in a file. Here's what I got so far:
#!/bin/bash
longest=""
for i in $(strings -n $1); do
if ]
then
longest=$i
fi
done
echo $longest... (4 Replies)
I have an alias defined in which I wish to print the contents of a specific directory using 'ls' based on the if/then condition. The if/then conditions are being correctly evaluated, and the 'ls <path>' result is correct (tested directly in a terminal) although for some reason it seems the 'ls... (4 Replies)
KXTERM(1) General Commands Manual KXTERM(1)NAME
kxterm - the CERN KUIP terminal emulator
SYNOPSIS
kxterm [class] [options]
DESCRIPTION
kxterm is a terminal emulator combining the best features of the (now defunct) Apollo DM pads (like: input and transcript pads, automatic
file backup of transcript pad, string search in pads, etc.) and the Korn shell emacs-style command line editing and command line recall
mechanism. For more detailed information about the program, please see the online help available from the kxterm Help menu.
kxterm has a number of X resources which can be set by the user; these are listed in the online help and in the file
/etc/X11/app-defaults/KXterm, where the default values are set. It should be noted that when kxterm is acting as a client for another
application, the desired X resource should be prefixed by "Kx" plus the class name of the application. So for application "Foo" the kxterm
resource class would be KxFoo, and one would set KxFoo*background, etc. One can also set the resource class of a kxterm window via the
command-line with the class argument.
OPTIONS -font fn
Specifies the font used by kxterm. The font fn must be an XLFD (X Logical Font Description), as for example displayed by the xls-
fonts program.
-geometry geom
Specifies the preferred size and position of the kxterm window; see X(7x) for details.
-h, -help
Show a summary of options.
-iconic
Specifies that the window manager should start kxterm as an icon.
-n iconname
Specifies the name of the kxterm window in an iconic state.
-name name
Specifies both the title and the iconized name of the kxterm window.
-pid pid
Specifies the process ID of the program that kxterm should act as a client for.
-prompt prompt
Sets the prompt displayed in the input pad of the program.
-tfont fn
Specifies the font used by text boxes, the input pad, and the transcript pad of the program. This should probably be a fixed-width
font like "courier" or "fixed".
-title title
Sets the title of the kxterm window to title.
SEE ALSO
o xlsfonts(1) - a program to list available fonts on an X server
o paw++(1) - a program using kxterm for its command interface
o the online help available from kxterm's Help menu
AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others).
January 24, 2003 KXTERM(1)