amadaluzian-zsh: fix package a small bit
This commit is contained in:
parent
3307e8259d
commit
941c8803b3
2 changed files with 12 additions and 10 deletions
|
@ -1,11 +1,11 @@
|
|||
source "@zsh-deferPath@"
|
||||
|
||||
eval "$(@starshipPath@ init zsh)"
|
||||
eval "$(@zoxidePath@ init zsh --cmd j)"
|
||||
|
||||
source "@zsh-deferPath@"
|
||||
|
||||
zsh-defer source "@fzf-tabPath@"
|
||||
zsh-defer source "@zsh-syntax-highlightingPath@"
|
||||
zsh-defer source "@zsh-autosuggestionsPath@"
|
||||
source "@fzf-tabPath@"
|
||||
|
||||
zstyle ':fzf-tab:*' fzf-command "@fzfPath@"
|
||||
|
||||
|
|
|
@ -16,27 +16,29 @@
|
|||
symlinkJoin {
|
||||
name = "amadaluzian-zsh";
|
||||
paths = [
|
||||
eza
|
||||
zsh
|
||||
inputs.self.packages.${system}.amadaluzian-starship
|
||||
zoxide
|
||||
fzf
|
||||
];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
cp -Lr ${./config} $out/share/zshrc
|
||||
substituteInPlace $out/share/zshrc/.zshrc \
|
||||
cp -Lr ${./config} $out/share/amadaluzian-zshrc
|
||||
substituteInPlace $out/share/amadaluzian-zshrc/.zshrc \
|
||||
--subst-var-by ezaPath ${lib.getExe' eza "eza"} \
|
||||
--subst-var-by fzf-tabPath ${zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh \
|
||||
--subst-var-by zsh-deferPath ${zsh-defer}/share/zsh-defer/zsh-defer.plugin.zsh \
|
||||
--subst-var-by zsh-syntax-highlightingPath ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
|
||||
--subst-var-by zsh-autosuggestionsPath ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
|
||||
--subst-var-by starshipPath ${
|
||||
lib.getExe' inputs.self.packages.${system}.amadaluzian-starship "starship"
|
||||
} \
|
||||
--subst-var-by zoxidePath ${lib.getExe' zoxide "zoxide"} \
|
||||
--subst-var-by fzfPath ${lib.getExe' fzf "fzf"} \
|
||||
--subst-var-by fzf-tabPath ${zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh \
|
||||
--subst-var-by zsh-deferPath ${zsh-defer}/share/zsh-defer/zsh-defer.plugin.zsh \
|
||||
--subst-var-by zsh-syntax-highlightingPath ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
|
||||
--subst-var-by zsh-autosuggestionsPath ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
|
||||
|
||||
wrapProgram $out/bin/zsh \
|
||||
--set ZDOTDIR $out/share/zshrc \
|
||||
--set ZDOTDIR $out/share/amadaluzian-zshrc \
|
||||
'';
|
||||
meta.mainProgram = "zsh";
|
||||
passthru.shellPath = "/bin/zsh";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue