dustin
/
zdotdir
Archived
1
0
Fork 0
Commit Graph

8 Commits (ec41e37b4b487bc0709e0ed324186a2146ba6dd5)

Author SHA1 Message Date
Dustin ec41e37b4b Add .zshenv
`.zshenv` is read for all shells, interactive or not, making it the best
place to set variables that always apply.  Unfortunately, it cannot be
kept in `ZDOTDIR`, since that variable has to be set in that same
script.  To work around this, the "real" `.zshenv` can source the one in
`ZDOTDIR`.
2020-05-03 13:12:46 -05:00
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 fa73cd6482 zprofile: Add .zprofile and .zprofile.local
The `.zprofile` file is sourced by ZSH when the shell is run as a login
shell. The `.zprofile.local` file, if it exists, is sourced by the main
`.zprofile` script, and is the best place for unversioned per-machine
changes.
2017-01-19 14:47:18 -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 48e913c8ce Update .zshrc
Updating to the version of .zshrc on Tau Scorpii. This enhanced version
has a couple of improvements:

* Aliases moved to a separate file for easier maintenance
* Auto-discovery of functions on fpath
2017-01-16 14:11:15 -06:00
Dustin 7cab8a6bda Initial commit 2017-01-15 17:07:00 -06:00