add nb: nix build and ns: nix shell shell aliases
This commit is contained in:
parent
a907db9e59
commit
9250237a77
1 changed files with 10 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.modules.apps.zsh;
|
cfg = config.modules.apps.zsh;
|
||||||
in
|
in
|
||||||
|
|
@ -20,10 +25,12 @@ in
|
||||||
ll = "lsd -l";
|
ll = "lsd -l";
|
||||||
lt = "lsd -l --tree";
|
lt = "lsd -l --tree";
|
||||||
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
|
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
|
||||||
|
nb = "nix build -L";
|
||||||
|
ns = "nix shell -L";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
[[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
[[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||||
'';
|
'';
|
||||||
history = {
|
history = {
|
||||||
path = "${config.xdg.dataHome}/zsh/history";
|
path = "${config.xdg.dataHome}/zsh/history";
|
||||||
size = 10000;
|
size = 10000;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue