summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2023-02-28 17:37:10 +0100
committerCanop <cano.petrole@gmail.com>2023-02-28 17:37:10 +0100
commit6e3cd006b821ce907094f65ec78386386831160b (patch)
tree046d670920e3be866ed62d85f958a984a83af112
parent24d0579899535eb26d1a203fec8df03d23ce9b68 (diff)
increment shell version to trigger updatestevenxxiu-fix/nushell-expand-path
-rw-r--r--CHANGELOG.md3
-rw-r--r--Cargo.toml2
-rw-r--r--src/shell_install/nushell.rs9
-rw-r--r--src/shell_install/state.rs2
4 files changed, 9 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 53ab48b..3bbfe5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+### next
+- better nushell integration (no need to quote arguments anymore, fix path extension broken by new version of nushell) - Thanks @stevenxxiu
+
### v1.20.2 - 2023-02-19
<a name="v1.20.2"></a>
- fix debug statement printed in some cases (mostly on Windows) - Fix #672
diff --git a/Cargo.toml b/Cargo.toml
index 104d131..1d6c346 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "broot"
-version = "1.20.2"
+version = "1.20.3-dev"
authors = ["dystroy <denys.seguret@gmail.com>"]
repository = "https://github.com/Canop/broot"
homepage = "https://dystroy.org/broot"
diff --git a/src/shell_install/nushell.rs b/src/shell_install/nushell.rs
index 224b26e..7863eb5 100644
--- a/src/shell_install/nushell.rs
+++ b/src/shell_install/nushell.rs
@@ -11,7 +11,6 @@
//!
//! Please note that this function is in no way perfect:
//! - it doesn't allow other commands than cd
-//! - it requires you to quote arguments given to broot
//!
//! More info at
//! https://github.com/Canop/broot/issues/375
@@ -26,16 +25,16 @@ use {
};
const NAME: &str = "nushell";
-const VERSION: &str = "3";
+const VERSION: &str = "4";
const NU_FUNC: &str = r#"
# Launch broot
#
# Flags for broot must be between quotes:
-# > br "-hi" some/path
+# > br -hi some/path
# > br
-# > br "-sdp"
-# > br "-hi" "-c" "vacheblan.svg;:open_preview" ..
+# > br -sdp
+# > br -hi -c "vacheblan.svg;:open_preview" ..
#
# See https://dystroy.org/broot/install-br/
def-env br [
diff --git a/src/shell_install/state.rs b/src/shell_install/state.rs
index 8b57a96..022d1e7 100644
--- a/src/shell_install/state.rs
+++ b/src/shell_install/state.rs
@@ -13,7 +13,7 @@ use {
/// must be incremented when the architecture changes or one of the shell
/// specific scripts is upgraded to a new version
-const CURRENT_VERSION: usize = 3;
+const CURRENT_VERSION: usize = 4;
const REFUSED_FILE_CONTENT: &str = r#"
This file tells broot you refused the installation of the companion shell function.