Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jun 26, 2023
1 parent 0fb1f17 commit 8ffbfa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tui/shell_integration/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func extract_shell_integration_for(shell_name string, dest_dir string) (err erro
return
}

func EnsureShellIntegrationFilesFor(shell_name string) (shell_integration_dir string, err error) {
func EnsureShellIntegrationFilesFor(shell_name string) (shell_integration_dir_for_shell string, err error) {
if kid := os.Getenv("KITTY_INSTALLATION_DIR"); kid != "" {
if s, e := os.Stat(kid); e == nil && s.IsDir() {
q := filepath.Join(kid, "shell-integration", shell_name)
Expand All @@ -66,7 +66,7 @@ func EnsureShellIntegrationFilesFor(shell_name string) (shell_integration_dir st
if err = extract_shell_integration_for(shell_name, base); err != nil {
return "", err
}
return filepath.Join(base, "shell-integration"), nil
return filepath.Join(base, "shell-integration", shell_name), nil
}

func is_new_zsh_install(env map[string]string, zdotdir string) bool {
Expand Down

0 comments on commit 8ffbfa1

Please sign in to comment.