Skip to main content

Config User Guide

You can store repeated command options in a config file so that you wont have to keep typing them.

To start, create a text file called .magic.yaml inside your home directory, $HOME/.magic.yaml, notice how it starts with a dot, that's a hidden file attribute in Unix/Linux world.

For example here is a content of .magic.yaml in which we are storing the USB adapter info and the SSID name:

cat ~/.magic.yaml
usb: 0x345a:0x012k
ssid: my-cool-ssid

Once you have such data in your .magic.yaml file, you can then simply run the magic command this way and it will automatically fill the missing info from the .yaml file.

Example:

magic <command> --key <magic key>

Here is a list of the available options that can be stored in the config file:

# for wifi mode
usb: 0x345a:0x012k
ssid: my-cool-ssid
#ssid: old-ssid
# for vnc mode
memory: 2
resolution: 1920x1080
note

You can use the # character to add comments or disable options inside the config file.