reformat and added vinix and nrs functions
This commit is contained in:
@@ -30,7 +30,11 @@
|
||||
...
|
||||
}: {
|
||||
packages = {
|
||||
zsh = inputs.wrappers.wrappers.zsh.wrap {
|
||||
zsh = let
|
||||
flakeLocation = builtins.getEnv "PWD";
|
||||
in
|
||||
assert flakeLocation != "";
|
||||
inputs.wrappers.wrappers.zsh.wrap {
|
||||
inherit pkgs;
|
||||
runtimePkgs = [pkgs.carapace pkgs.fzf];
|
||||
zshAliases = {
|
||||
@@ -42,6 +46,8 @@
|
||||
carapace = lib.getExe pkgs.carapace;
|
||||
man = "man -P \"${lib.getExe pkgs.bat} -p\"";
|
||||
nsh = "nix-shell -p";
|
||||
nrs = "( cd ${flakeLocation} && sudo nixos-rebuild switch --impure --flake . )";
|
||||
vinix = "nvim --cmd 'cd ${flakeLocation}'";
|
||||
};
|
||||
zshrc.content = ''
|
||||
if (( ''${+terminfo[smkx]} )) && (( ''${+terminfo[rmkx]} )); then
|
||||
|
||||
Reference in New Issue
Block a user