OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: doktornotor on December 12, 2023, 10:58:45 am

Title: Improved shell prompt
Post by: doktornotor on December 12, 2023, 10:58:45 am
Just putting a note here for myself, might be useful for others. Mainly wanted FQDN included, the hostname alone is not really useful when you have tons of boxes which happen to have e.g. gw as hostname.

Use this in ~/.cshrc (comment out the original line) to get [OPNsense version][username@FQDN]/$cwd #
Code: [Select]
set prompt="[%B`opnsense-version`%b][%B%n%b%{\033[0;1;31m%}@%{\033[0;0;0m%}%B%M%b]%/%{\033[0;1;31m%} #%{\033[0;0;0m%} "

Result:
Code: [Select]
[OPNsense 23.7.9][root@host.example.com]/root #