- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command Prompt get truncated to 80 chars whenever ...
Operating System - HP-UX
1753918
Members
7666
Online
108810
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2005 12:44 AM
тАО01-07-2005 12:44 AM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
Expand window, type in:
resize
Then you should see it.
This is what I do fro .profile
HOST=`uname -n`
PS1="
\$LOGNAME@\$HOST [ \$PWD ]
# ";export PS1
That way, commands are on line below the path.
Rgds...Geoff
resize
Then you should see it.
This is what I do fro .profile
HOST=`uname -n`
PS1="
\$LOGNAME@\$HOST [ \$PWD ]
# ";export PS1
That way, commands are on line below the path.
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2005 02:57 AM
тАО01-07-2005 02:57 AM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
If there is no way to prevent the truncate, how can I ensure that the prompt only display the last 80 characters?
Currently, PS1 is set as follows:
export PS1='['`whoami`'@'`uname -n`']$PWD>> '
John
Currently, PS1 is set as follows:
export PS1='['`whoami`'@'`uname -n`']$PWD>> '
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2005 06:09 AM
тАО01-07-2005 06:09 AM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
After a while, these really long $PWD prompts can be very annoying, even if they are on a separate line. Usually, you know the parent structure of where you are located and you only need the current directory and the next higher directory. This will accomplish that task and avoid the truncation:
export PS1='${PWD##${PWD%/*/*}/} $ '
Bill Hassell, sysadmin
export PS1='${PWD##${PWD%/*/*}/} $ '
Bill Hassell, sysadmin
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP