MCPcopy Index your code
hub / github.com/jetify-com/devbox / rcfilePath

Function rcfilePath

internal/devbox/shell.go:208–214  ·  view source on GitHub ↗

rcfilePath returns the absolute path for an rcfile, which is usually in the user's home directory. It doesn't guarantee that the file exists.

(basename string)

Source from the content-addressed store, hash-verified

206// rcfilePath returns the absolute path for an rcfile, which is usually in the
207// user's home directory. It doesn't guarantee that the file exists.
208func rcfilePath(basename string) string {
209 home, err := os.UserHomeDir()
210 if err != nil {
211 return ""
212 }
213 return filepath.Join(home, basename)
214}
215
216func fishConfig() string {
217 return xdg.ConfigSubpath("fish/config.fish")

Callers 1

initShellBinaryFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected