Declare a readonly variable with the specified value

local

  • Declare local variables and give them attributes.
    More information: <https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

local -r {{variable}}="{{value}}"

click the source code to copy install local on any operating system with command-not-found.com