Removed duplicate of onefetch on devenv start

Fixed typo
This commit is contained in:
2026-07-30 09:46:55 +01:00
parent 320438eb7e
commit f8d82b990a
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -13,6 +13,6 @@ source integrations/zoxide.nu
source integrations/atuin.nu
source integrations/rip.nu
# Finally, we run a system info fetch
if not ("DEVENV_RUNTIME" in $env) {
if not (in-devenv?) {
sysfetch
}
+1 -1
View File
@@ -28,7 +28,7 @@ export def main [] {
env_change: {
PWD: [
{|before, after| # This hook runs onefetch when the current directory is a git repository
if ".git\n" in ($after | ls -a | str join) {
if (not (in-devenv?)) and (".git\n" in ($after | ls -a | str join)) {
print (^onefetch --nerd-fonts)
}
},
+4
View File
@@ -58,3 +58,7 @@ export def 'start-lab-session' [
pueue kill $task_id
pueue rm $task_id
}
export def in-devenv? [] {
"DEVENV_RUNTIME" in $env
}