removed mcd.nix script and added it as a function to zshell.nix
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
self,
|
|
||||||
pkgs,
|
|
||||||
}:
|
|
||||||
pkgs.writeShellScriptBin "mcd" ''
|
|
||||||
#!/run/current-system/sw/bin/bash
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p "$1"
|
|
||||||
cd "$1" || exit
|
|
||||||
''
|
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user