dustin
/
zdotdir
Archived
1
0
Fork 0
Commit Graph

5 Commits (ec41e37b4b487bc0709e0ed324186a2146ba6dd5)

Author SHA1 Message Date
Dustin e120838f8a functions: Add test vm functions
* `@testvm::cleanup`: Deletes (after optionally powering off) test VMs
  matching a pattern
* `@testvm::connect`: Connects to test VM using SSH
* `@testvm::delete`: Powers off and deletes a specific test VM
* `@testvm::sftp`: Connects to a test VM using SFTP
2020-04-03 16:10:29 -05:00
Dustin d9d559c327 functions: dotenv: export variables from .env
Tools (such as VSCode) can read and use environment variables from a
file in the current working directory named `.env`.  Unfortunately,
these tools are not exactly compatible with shell syntax, as they do not
correctly process lines starting with `export`.

The `dotenv` function will read a `.env` file from the current working
directory and then export all of the variables it defines.  This allows
the `.env` file to define the variables without "exporting" them, making
them compatible with VSCode et al, but still allowing the same
environment variables to be set in the shell and its child processes.
2020-02-08 14:23:18 -06:00
Dustin 04ce9e66e3 functions/vmip: Correctly handle multiple addresses
When a virtual machine has multiple matching addresses, only the first
will be printed.
2017-02-27 10:40:39 -06:00
Dustin fc8d0d0b84 functions/precmd: Support custom terminal titles
The `window_title` variable can be set to completely override the title
of the terminal window. Alternatively, if the `term_name` variable is
set, it will be prepended to the default window title.
2017-01-17 14:37:38 -06:00
Dustin 7cab8a6bda Initial commit 2017-01-15 17:07:00 -06:00