document workaround for sourcing autojump init file from zsh

This commit is contained in:
Hoang Xuan Phu 2015-03-21 16:50:20 +08:00
parent a246b849eb
commit 4967e78dc8

View File

@ -1,6 +1,6 @@
{ fetchurl, stdenv, python, bash }: { fetchurl, stdenv, python, bash }:
let let
version = "22.2.4"; version = "22.2.4";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -23,6 +23,8 @@ in
cp -v $out/share/autojump/autojump.bash "$out/etc/bash_completion.d" cp -v $out/share/autojump/autojump.bash "$out/etc/bash_completion.d"
# FIXME: What's the right place for `autojump.zsh'? # FIXME: What's the right place for `autojump.zsh'?
# This can be used as a workaround in .zshrc:
# . $(dirname $(readlink -f $HOME/.nix-profile/bin/autojump))/../share/autojump/autojump.zsh
''; '';
meta = { meta = {