From 863bbfccac67dea9671df28a2aa840d267c28ce6 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 15 Apr 2023 11:53:39 +0200 Subject: [PATCH 1/4] Fix warning that config is defined in the wrong way --- private_dot_config/nushell/completions/cargo.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private_dot_config/nushell/completions/cargo.nu b/private_dot_config/nushell/completions/cargo.nu index c59e7b0..00fb916 100644 --- a/private_dot_config/nushell/completions/cargo.nu +++ b/private_dot_config/nushell/completions/cargo.nu @@ -18,7 +18,7 @@ export extern "cargo" [ --frozen --locked --offline - --config: string + # --config: string -Z: string ] @@ -38,7 +38,7 @@ export extern "cargo build" [ --bin: string --offline --bins - --config: string + # --config: string --example: string --test: string --tests From bc2521361335bea74d5c9eba0222403a8a6da745 Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 18 May 2023 00:53:37 +0200 Subject: [PATCH 2/4] Fix issue with thefuck and nushell --- private_dot_config/nushell/config.nu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/private_dot_config/nushell/config.nu b/private_dot_config/nushell/config.nu index 0bf06b7..044a8c9 100644 --- a/private_dot_config/nushell/config.nu +++ b/private_dot_config/nushell/config.nu @@ -425,5 +425,8 @@ source ~/.config/nushell/starship.nu # aliases source ~/.config/nushell/aliases.nu +# zoxide +source ~/.config/nushell/zoxide.nu + # motd -source ~/.config/nushell/motd.nu +source ~/.config/nushell/motd.nu \ No newline at end of file From 3aa05a537491a1d282ee677dd1dfc777b17c46b1 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 28 Jun 2023 20:28:10 +0200 Subject: [PATCH 3/4] Fix document symbol in starship prompt --- private_dot_config/starship.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private_dot_config/starship.toml b/private_dot_config/starship.toml index 03c871c..5b38cbc 100644 --- a/private_dot_config/starship.toml +++ b/private_dot_config/starship.toml @@ -47,7 +47,7 @@ truncation_symbol = "…/" # Here is how you can shorten some long paths by text replacement # similar to mapped_locations in Oh My Posh: [directory.substitutions] -"Documents" = " " +"Documents" = "󱔗 " "Downloads" = " " "Music" = " " "Pictures" = " " @@ -86,7 +86,7 @@ style = "bg:93" format = '[[ $symbol ($version) ](fg:231 bg:93)]($style)' [golang] -symbol = "" +symbol = "" style = "bg:93" format = '[[ $symbol ($version) ](fg:231 bg:93)]($style)' From 71c833ed3855194b7d0a025c82eeadac86da56b2 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 13 Aug 2023 21:49:10 +0200 Subject: [PATCH 4/4] Fix backup script --- dot_local/share/scripts/executable_backup.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_local/share/scripts/executable_backup.nu b/dot_local/share/scripts/executable_backup.nu index e1e58c9..65bcdc9 100644 --- a/dot_local/share/scripts/executable_backup.nu +++ b/dot_local/share/scripts/executable_backup.nu @@ -1,6 +1,6 @@ #!/bin/nu -let-env BORG_REPO = '/run/media/trivernis/Backup' -let BACKUP_PATHS = [ +$env.BORG_REPO = '/run/media/trivernis/Backup' +let BACKUP_PATHS = ([ ~/Documents ~/Videos ~/Pictures/ @@ -15,7 +15,7 @@ let BACKUP_PATHS = [ /mnt/Data/Audio/ /mnt/Massdata/ /etc -] +] | path expand ) if (pgrep borg | length) > 0 { echo "Borg is running"