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