Skip to content

Inverse replacement with environment variables #24

@akm

Description

@akm

Replace string which is not preferred to show outside to environment variable name.

For example, if you have environment variable HOME=/Users/foo and executed command output /Users/foo/credentials/bar, git-exec will replace it to $HOME/credentials/bar on build commit message.

Exceptions

  • value has only numeric, only space or too short string like:
    • KCODE=u
    • PS1='$ '
    • TERM_PROGRAM_VERSION=453
    • XPC_FLAGS=0x0
    • XPC_SERVICE_NAME=0
  • value which might match as other means
    • CLOUDSDK_PYTHON=python3
    • OLDPWD=...
    • PWD=...
    • SHELL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions