Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
2783c9811d
commit
a1b3975f39
6 changed files with 63 additions and 30 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ withSystem, ... }:
|
||||
{ inputs, withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "start-tmux";
|
||||
|
|
@ -10,9 +10,9 @@ in
|
|||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
# TODO: Add `z` once its available as a package.
|
||||
runtimeInputs = with pkgs; [
|
||||
fzf
|
||||
inputs.z.packages.${pkgs.system}.default
|
||||
];
|
||||
|
||||
text = ''
|
||||
|
|
|
|||
|
|
@ -1,27 +1,13 @@
|
|||
{ inputs, withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "zet";
|
||||
name = "z";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.buildGoModule {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
git
|
||||
];
|
||||
|
||||
src = inputs.zet;
|
||||
|
||||
vendorHash = "sha256-pprnK2JKmPuR3Q+F8+vMDEdowlb3oX4BOOzW8NGOqgs=";
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cmd-${name} $out/bin/${name}
|
||||
'';
|
||||
};
|
||||
packages.${name} = inputs.${name}.packages.${pkgs.system}.default;
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
tag = "tag-release";
|
||||
vss = "LC_ALL=C sort --unique ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.adddotfiles/nvim/spell/en.utf-8.add --output ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.add";
|
||||
wt = "git worktree";
|
||||
zet = "z zet";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.zsh.initContent = ''
|
||||
# Completions
|
||||
source <(z completion zsh)
|
||||
|
||||
background() {
|
||||
for ((i=2;i<=$#;i++)); do
|
||||
''${@[1]} ''${@[$i]} &> /dev/null &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue