revert: remove paths from packages wrappers

This commit is contained in:
Guz
2025-02-13 13:17:30 -03:00
parent 69569740a0
commit 9819b81014
4 changed files with 7 additions and 24 deletions

View File

@@ -6,9 +6,6 @@
yazi = pkgs.callPackage ./yazi {};
zellij = pkgs.callPackage ./zellij {
shell = zsh;
addPath = [ghostty git lazygit starship yazi zsh];
};
zsh = pkgs.callPackage ./zsh {
addPath = [git lazygit starship yazi];
};
zsh = pkgs.callPackage ./zsh {};
}

View File

@@ -5,7 +5,6 @@
lib,
zellij ? pkgs.zellij,
shell ? pkgs.zsh,
addPath ? [],
}: let
colors = import ../colors.nix;
@@ -50,14 +49,7 @@
'';
drv = symlinkJoin ({
paths = pkgs.writeShellScriptBin "zellij" ''
${
if (builtins.length addPath) > 0
then "export PATH=\"$PATH:${lib.makeBinPath addPath}\""
else ""
}
${lib.getExe zellij} "$@"
'';
paths = zellij;
nativeBuildInputs = [makeWrapper];

View File

@@ -33,8 +33,10 @@ setopt SHARE_HISTORY
unsetopt EXTENDED_HISTORY
# Start starship for interactive shells
if [[ "$TERM" != "dump" ]]; then
eval "$(starship init zsh)"
if command -v "starship" >/dev/null 2>&1; then
if [[ "$TERM" != "dump" ]]; then
eval "$(starship init zsh)"
fi
fi
# Syntax highlighting

View File

@@ -4,7 +4,6 @@
pkgs,
lib,
zsh ? pkgs.zsh,
addPath ? [],
# .zshrc
zshrc-prepend ? "",
zshrc-append ? "",
@@ -16,14 +15,7 @@
zshrc-append-file = pkgs.writeText ".zshrc_append" zshrc-append;
drv = symlinkJoin ({
paths = pkgs.writeShellScriptBin "zsh" ''
${
if (builtins.length addPath) > 0
then "export PATH=\"$PATH:${lib.makeBinPath addPath}\""
else ""
}
${lib.getExe zsh} "$@"
'';
paths = zsh;
nativeBuildInputs = [makeWrapper];