Forum Discussion
Hannes_Rapp
Aug 30, 2016Nimbostratus
How to customize command line prompt?
Well aware of the $PS1 variable of the BASH shell, but what variable or configuration file controls the prompt of TMSH?
I would like to make the command prompt of TMSH a bit slimmer - eliminate c...
Hannes_Rapp
Nimbostratus
Thx to @Jason Rahm and @Mark Crosland.
Here's the answer if anyone else got the same question:
tmsh help cli preference, there is a limited amount of stuff to choose from, no shell out to bash for random commands or similar.
root@(d3)(cfg-sync Standalone)(Active)(/Common)(tmos) mod cli preference prompt {
Options:
}
Values:
avc-count fully-qualified-host mcp-state user
config-sync-status host multi-line user-role
current-folder mcp-load-status status
root@(d3)(cfg-sync Standalone)(Active)(/Common)(tmos) mod cli preference prompt { avc-count host … }
Georgi__Joe__St
Aug 17, 2017Altostratus
Thank you :), you saved me from digging in docs 🙂
I am using this one, hostname is replaced by FQDN and multy-line:
modify cli preference prompt { user fully-qualified-host config-sync-status status current-folder multi-line }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects