New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autojump: rework #40725
autojump: rework #40725
Conversation
- fetchurl -> fetchFromGitHub - Update URLs: joelthelion -> wting - mkdir + cp -> install - Use -z flag to set zshshare_dir - Add me as a maintainer - Use recursive version instead of let - meta: with stdenv.lib; ...
/ping @domenkozar |
@GrahamcOfBorg build autojump |
Success on aarch64-linux (full log) Attempted: autojump Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: autojump Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: autojump Partial log (click to expand)
|
Until now the recommended way of activating
This PR removes the |
I'm not a Z shell user, and as I (poorly) stated above, I only tested on fish, but now the site functions are installed to |
Actually you're right. I totally missed that. Thanks!
Eric Bailey <notifications@github.com> writes:
… I'm not a Z shell user, and as I (poorly) stated above, I only tested on fish, but now the site functions are installed to `$out/share/zsh/site-functions/`, so that should Just Work™, right?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#40725 (comment)
|
Awesome! |
How can I make this work with |
@Janiczek, I believe so. If you use the |
Sorry, a stupid question of a Nix beginner 🙂 Can I do that with Nix installed in Ubuntu (I'm not on NixOS)? Do I use |
There are no stupid questions! I most often use NixOS or nix-darwin, and don't have much Nix on Linux experience. With that said, you won't be able to use |
I'm a bash user. Now that the How does Nix handle that? If there are any I currently don't have a Will this just be handled automatically? (Note, this is something completely different than autocompletion.) |
For users of oh-my-zsh in nixos systems, the autojump plugin is searched for in /run/current-system/sw/shared/autojump/. In 18.03, I disabled the plugin and used autojump-share in my .zshrc. With #47334 the right links are created when programs.autojump.enabled is set to true and the oh-my-zsh autojump plugin works like a charm. |
Nixos beginner here. |
The best option imo would be to have autojump.bash loaded automatically when programs.autojump.enable is set (and the same should apply to zsh - this would even remove the need for the oh-my-zsh autojump plugin). Done in #47334. |
On 18.09 I instead had to |
Motivation for this change
Modernize the package, fix fish completion, and update URLs.
fetchurl
->fetchFromGitHub
mkdir
+cp
->install
-z
flag to setzshshare_dir
meta.maintainers
rec
-ursiveversion
instead oflet
meta
:with stdenv.lib; ...
N.B. I've only tested
fish
completions.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)