Skip to content

Hosts

Index

hosts::is_personal

Return true if the current host is a personal machine (desktop or laptop). shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

Exit codes

  • 0: if true
  • 1: if false

hosts::is_work

Return true if the current host is the work laptop. shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

Exit codes

  • 0: if true
  • 1: if false

hosts::is_desktop

Return true if the current host is the personal desktop. shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

Exit codes

  • 0: if true
  • 1: if false

hosts::is_laptop

Return true if the current host is a laptop (personal or work). shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

Exit codes

  • 0: if true
  • 1: if false

hosts::is_server

Return true if the current host is a server (not any known personal or work machine). shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

Exit codes

  • 0: if true
  • 1: if false