removed mcd.nix script and added it as a function to zshell.nix

This commit is contained in:
pagedmov
2024-10-29 23:56:36 -04:00
parent 34858683c1
commit 255fba2de5
3 changed files with 4 additions and 16 deletions

View File

@@ -114,6 +114,10 @@
return 0 return 0
} }
mkcd() {
mkdir -p "$1" && cd "$1"
}
y() { y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp" yazi "$@" --cwd-file="$tmp"

View File

@@ -1,11 +0,0 @@
{
self,
pkgs,
}:
pkgs.writeShellScriptBin "mcd" ''
#!/run/current-system/sw/bin/bash
mkdir -p "$1"
cd "$1" || exit
''

View File

@@ -24,10 +24,6 @@
self = self; self = self;
pkgs = pkgs; pkgs = pkgs;
}; };
mcd = import ./commands/mcd.nix {
self = self;
pkgs = pkgs;
};
garbage-collect = import ./nix/garbage-collect.nix { garbage-collect = import ./nix/garbage-collect.nix {
self = self; self = self;
pkgs = pkgs; pkgs = pkgs;
@@ -61,7 +57,6 @@ in {
keyring keyring
garbage-collect garbage-collect
invoke invoke
mcd
rebuild rebuild
nsp nsp
runbg runbg