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)
| 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. |
| 208 | func rcfilePath(basename string) string { |
| 209 | home, err := os.UserHomeDir() |
| 210 | if err != nil { |
| 211 | return "" |
| 212 | } |
| 213 | return filepath.Join(home, basename) |
| 214 | } |
| 215 | |
| 216 | func fishConfig() string { |
| 217 | return xdg.ConfigSubpath("fish/config.fish") |
no outgoing calls
no test coverage detected