MCPcopy
hub / github.com/direnv/direnv / Hook

Method Hook

internal/cmd/shell.go:11–11  ·  view source on GitHub ↗

Hook is the string that gets evaluated into the host shell config and setups direnv as a prompt hook.

()

Source from the content-addressed store, hash-verified

9 // Hook is the string that gets evaluated into the host shell config and
10 // setups direnv as a prompt hook.
11 Hook() (string, error)
12
13 // Export outputs the ShellExport as an evaluatable string on the host shell
14 Export(e ShellExport) (string, error)

Callers 1

cmdHookActionFunction · 0.65

Implementers 11

systemdShellinternal/cmd/shell_systemd.go
bashinternal/cmd/shell_bash.go
murexinternal/cmd/shell_murex.go
viminternal/cmd/shell_vim.go
fishinternal/cmd/shell_fish.go
pwshinternal/cmd/shell_pwsh.go
jsonShellinternal/cmd/shell_json.go
elvishinternal/cmd/shell_elvish.go
ghainternal/cmd/shell_gha.go
tcshinternal/cmd/shell_tcsh.go
zshinternal/cmd/shell_zsh.go

Calls

no outgoing calls

Tested by

no test coverage detected