feat(environment): add scripts directory environment variable/alias
This commit is contained in:
parent
b66d62f73b
commit
7f65dfcb72
2 changed files with 2 additions and 16 deletions
|
|
@ -13,25 +13,10 @@ in
|
||||||
programs.fish = mkIf cfg.enable {
|
programs.fish = mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAbbrs = rec {
|
shellAbbrs = rec {
|
||||||
jqless = "jq -C | less -r";
|
|
||||||
|
|
||||||
n = "nix";
|
|
||||||
nd = "nix develop -c $SHELL";
|
|
||||||
ns = "nix shell";
|
|
||||||
nsn = "nix shell nixpkgs#";
|
|
||||||
nb = "nix build";
|
|
||||||
nbn = "nix build nixpkgs#";
|
|
||||||
nf = "nix flake";
|
|
||||||
|
|
||||||
nr = "nixos-rebuild --flake .";
|
|
||||||
nrs = "nixos-rebuild --flake . switch";
|
|
||||||
snr = "sudo nixos-rebuild --flake .";
|
|
||||||
snrs = "sudo nixos-rebuild --flake . switch";
|
|
||||||
hm = "home-manager --flake .";
|
|
||||||
hms = "home-manager --flake . switch";
|
|
||||||
|
|
||||||
fe = mkIf hasHelix "cd $FLAKE; hx $FLAKE";
|
fe = mkIf hasHelix "cd $FLAKE; hx $FLAKE";
|
||||||
f = "cd $FLAKE";
|
f = "cd $FLAKE";
|
||||||
|
s = "cd $SCRIPTS";
|
||||||
|
|
||||||
tree = mkIf hasEza "eza -T --icons --group-directories-first";
|
tree = mkIf hasEza "eza -T --icons --group-directories-first";
|
||||||
ls = mkIf hasEza "eza -a --icons --group-directories-first";
|
ls = mkIf hasEza "eza -a --icons --group-directories-first";
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ in
|
||||||
sessionPath = [ "$HOME/.local/bin" ];
|
sessionPath = [ "$HOME/.local/bin" ];
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
FLAKE = "$HOME/Coding/nix/ooks-io/nix";
|
FLAKE = "$HOME/Coding/nix/ooks-io/nix";
|
||||||
|
SCRIPTS = "$HOME/Coding/sh/scripts";
|
||||||
TZ = "Pacific/Auckland";
|
TZ = "Pacific/Auckland";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue