dustin
/
zdotdir
Archived
1
0
Fork 0
Commit Graph

14 Commits (master)

Author SHA1 Message Date
Dustin f6c136c1a8 zshrc: Remove PYTHONWARNINGS env var
I originally set the `PYTHONWARNINGS` variable to ensure I see warnings
from third-party libraries, etc. during development.  Unfortunately, a
*lot* of software (Ansible, Jupyter, dnf, etc.) generate a lot of
warnings.  These warnings are annoying, but can also break other
software, like VSCode.

Whenever I am developing something in Python, I need to remember to set
`PYTHONWARNINGS` manually now...
2021-03-07 16:11:03 -06:00
Dustin 4e63427646 zshrc: Always use Gentoo prompt 2020-05-03 13:25:16 -05:00
Dustin 6c18587fcf zshrc: Launch gpg-agent
I like to use `gpg-agent` as my SSH agent now.  This makes it possible
to use hardware keys (Yubikey, and hopefully soon Solo), and helps keep
the keys more secure by periodically locking them and requiring the
password to unlock them again.

Occasionally, `gpg-agent` gets in a weird state where it stops
responding.  I usually fix this with:

    echo KILLAGENT | gpg-connect-agent
    gpg-connect-agent /bye
    gpg-connect-agent updatestartuptty /bye
2020-05-03 13:21:33 -05:00
Dustin 8844aead74 functions: vmip: Print all addresses
Since I no longer test FMOS in IPv6-only environments, I need `vmip` to
show IPv4 addresses, too.
2020-05-03 13:20:40 -05:00
Dustin 2ff70f36b5 zshrc: Load precmd in Alacritty
Alacritty has its own TERM string now.
2020-05-03 13:19:44 -05:00
Dustin d48954bf81 zshrc: Set LESS
Fedora et al. do not set the `LESS` environment variable like Gentoo
does.  As a result, `less` does not interpret ANSI color codes by
default, making the output from `gs`, etc. aliases unreadable.
2020-05-03 13:18:11 -05:00
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