nix-conf-zsh/zsh/gwp/gwp.plugin.zsh
2021-11-16 16:17:57 +02:00

10 lines
419 B
Bash

function gwp() {
pkgs="$@"
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -p "ghcid" -p "haskellPackages.ghcWithHoogle (pkgs: with pkgs; [$pkgs])" --run 'zsh'
}
function gwi() {
pkgs="$@"
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [$pkgs])" --run 'ghci'
}