parent
b1c750a6bb
commit
70faf05c86
|
@ -23,7 +23,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
|
||||||
#
|
#
|
||||||
|
|
||||||
# Jump to a directory using only keywords.
|
# Jump to a directory using only keywords.
|
||||||
def-env __zoxide_z [...rest:string] {
|
def --env __zoxide_z [...rest:string] {
|
||||||
let arg0 = ($rest | append '~').0
|
let arg0 = ($rest | append '~').0
|
||||||
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
|
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
|
||||||
$arg0
|
$arg0
|
||||||
|
@ -34,7 +34,7 @@ def-env __zoxide_z [...rest:string] {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Jump to a directory using interactive search.
|
# Jump to a directory using interactive search.
|
||||||
def-env __zoxide_zi [...rest:string] {
|
def --env __zoxide_zi [...rest:string] {
|
||||||
cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
|
cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1,7 @@
|
||||||
{programs.zoxide.enable = true;}
|
{
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
# TODO remove once zoxide is updated for new nushell def --env syntax
|
||||||
|
enableNushellIntegration = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -173,11 +173,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699343069,
|
"lastModified": 1700444282,
|
||||||
"narHash": "sha256-s7BBhyLA6MI6FuJgs4F/SgpntHBzz40/qV0xLPW6A1Q=",
|
"narHash": "sha256-s/+tgT+Iz0LZO+nBvSms+xsMqvHt2LqYniG9r+CYyJc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ec750fd01963ab6b20ee1f0cb488754e8036d89d",
|
"rev": "3f21a22b5aafefa1845dec6f4a378a8f53d8681c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -64,5 +64,5 @@
|
||||||
systemPackages = with pkgs; [podman podman-compose podman-tui];
|
systemPackages = with pkgs; [podman podman-compose podman-tui];
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["JetBrainsMono"];})];
|
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["JetBrainsMono" "Iosevka" "Hack"];}) monaspace];
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue