summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-12-12 00:18:58 +0000
committertb <tb@openbsd.org>2017-12-12 00:18:58 +0000
commit0a9a54a35dd51b7f9951e810334b28bf33b99e6a (patch)
treea496a8bfe30774da4bc203f8d06781430cccd8fe /lib/libc
parentThe code can be simplified by using clock_gettime(2)'s CLOCK_REALTIME (diff)
downloadwireguard-openbsd-0a9a54a35dd51b7f9951e810334b28bf33b99e6a.tar.xz
wireguard-openbsd-0a9a54a35dd51b7f9951e810334b28bf33b99e6a.zip
Include hostname in shell prompts by default
With tmux, ssh and vmd, we tend to open shells on many different hosts simultaneously and the default prompts '$ ' and '# ' for {,k}sh as well as '% ' and '# ' for csh become dangerous: it's very easy to issue a command on the wrong host. This can easily be avoided by displaying the hostname in the prompt. Everything beyond "hostname{$,#,%} " is going to be a matter of taste, so we left it at that. If you use an FQDN, only the first part (the output of 'hostname -s') will be printed. requested by and ok deraadt; mostly positive feedback many ok anton, brynet, bcallah and others
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions