From e9dc2f31890a41eac23c645e853a9390643894a7 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Fri, 6 Sep 2024 22:44:48 -0700 Subject: [PATCH] nushell --- users/tao/nushell/config.nu | 8 ++++---- users/tao/nushell/stuff.nu | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/users/tao/nushell/config.nu b/users/tao/nushell/config.nu index 7d4e980..aea65cb 100644 --- a/users/tao/nushell/config.nu +++ b/users/tao/nushell/config.nu @@ -155,7 +155,7 @@ $env.config = { } rm: { - always_trash: false # always act as if -t was given. Can be overridden with -p + always_trash: true # always act as if -t was given. Can be overridden with -p } table: { @@ -197,8 +197,8 @@ $env.config = { history: { max_size: 100_000 # Session has to be reloaded for this to take effect sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file - file_format: "plaintext" # "sqlite" or "plaintext" - isolation: false # only available with sqlite file_format. true enables history isolation, false disables it. true will allow the history to be isolated to the current session using up/down arrows. false will allow the history to be shared across all sessions. + file_format: "sqlite" # "sqlite" or "plaintext" + isolation: true # only available with sqlite file_format. true enables history isolation, false disables it. true will allow the history to be isolated to the current session using up/down arrows. false will allow the history to be shared across all sessions. } completions: { @@ -215,7 +215,7 @@ $env.config = { } filesize: { - metric: false # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard) + metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard) format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, auto } diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 13989b3..1fdc769 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -83,7 +83,7 @@ def check-mullvad [] { loop { print "checking connection status" http get https://am.i.mullvad.net/json - | if $in.mullvad_exit_ip == true {break} + | if $in.mullvad_exit_ip == true {break} else {print $in} sleep 1sec } }