Missing trailing slash
Closed this issue · 1 comments
manuel-uberti commented
Hi,
first of all thanks for this package. I'm using the latest version, having set it up like this in my Emacs configuration:
(use-package native-complete
:straight (:host github :repo "CeleritasCelery/emacs-native-shell-complete")
:ghook ('shell-mode-hook #'mu--setup-native-complete)
:config
(defun mu--setup-native-complete ()
(add-to-list 'completion-at-point-functions #'native-complete-at-point)
(after! shell
(native-complete-setup-bash))))
:ghook
comes from general.el and it's basically another way to add a hook to shell-mode-hook
.
If I open shell-mode
and immediately run M-: (native-complete-get-completion-style)
RET I get bash
.
However, when I hit write cd .em
and hit TAB, I get:
manuel@hathaway:~$ cd .emacs.d
I was expecting:
manuel@hathaway:~$ cd .emacs.d/
Furthermore, this is how I set up shell-mode
:
(setq explicit-bash-args '("-i")
explicit-shell-file-name "/bin/bash"
shell-command-prompt-show-cwd t
shell-file-name "/bin/bash")
(defun mu--inside-emacs (env)
(cons "INSIDE_EMACS" env))
(advice-add #'comint-term-environment :filter-return #'mu--inside-emacs)
Am I missing something? Or is this the expected behaviour?
manuel-uberti commented
I removed (add-to-list 'completion-at-point-functions #'native-complete-at-point)
and left only (native-complete-setup-bash)
and it works as expected.
Sorry for the noise, consider this closed.