String (@NotNull String shellName) { String rcfile = switch (shellName) { case BASH_NAME, SH_NAME -> "shell-integrations/bash/bash-integration.bash"; case ZSH_NAME -> "shell-integrations/zsh/.zshenv"; case FISH_NAME -> "shell-integrations/fish/fish-integration.fish"; default -> null; }; if (rcfile == null && isPowerShell(shellName)) { rcfile = "shell-integrations/powershell/powershell-integration.ps1"; } if (rcfile != null) { try { return findAbsolutePath(rcfile); } catch (Exception e) { LOG.warn("Unable to find " + rcfile + " configuration file", e); } } return null; }