mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-08-04 16:33:23 +01:00
Removed duplicate of onefetch on devenv start
Fixed typo
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user