Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @padde thank you very much for the amazing plugin!
I have being using it for a while now, but in the last weeks when I switched operating system, I have been dealing with a very weird
directory ... not found error
(when the directory does exist).It turns out, some OSs have
sh
linked to other kinds of shells, that are notbash
-like. For example, Ubuntu usesdash
(ref: https://wiki.ubuntu.com/DashAsBinSh).Some of those shells do not provide the built-in command
source
, which causesthe function
JumpCommand
to fail with an 127 error code.Since
jump.vim
assumes all errors are caused by non-existing directories,the resulting error message was very enigmatic and frustrating…
This PR, tries to solve that by enforcing
bash
, that is pretty much present every where. While it is not ideal to assumebash
is omnipresent, we cannot assume all built-insh
support thesource
command either :(This would be the best compromise I think (especially considering for example that Ubuntu is quite popular).