diff options
author | elijah <elijah@riseup.net> | 2016-08-15 20:36:45 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-08-15 20:36:45 -0700 |
commit | 0f282588f0deca65e1720b40177c67a42246ef85 (patch) | |
tree | 73e776deb6acb7edf9e5142ee30ff492e62488ce /lib/leap_cli | |
parent | 27294be44071b2b6db35f17a5a9220137e123d9b (diff) |
log short host names
Diffstat (limited to 'lib/leap_cli')
-rw-r--r-- | lib/leap_cli/log.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap_cli/log.rb b/lib/leap_cli/log.rb index fe9e1b7..af2fae7 100644 --- a/lib/leap_cli/log.rb +++ b/lib/leap_cli/log.rb @@ -131,6 +131,9 @@ module LeapCli # # set line prefix # + if (host) + host = host.split('.').first + end prefix = prefix_str(host, title) # |