Open runvnc opened 4 years ago
Well I sourced the br script, it is giving the same message when I run it as br. I think that maybe for my configuration or just in general this isn't set up to work with Mingw.
@runvnc I suspect this is the same problem than https://github.com/Canop/broot/issues/98 at the root
but my knowledge of cygwin is very (very) limited.
Not sure if this is an option for you but broot works well under windows with nushell (which comes with many gnu coreutils integrated), it looks like there are more people happy with that setup see #460.
I have written a PKGBUILD for compiling and distributing under msys2, but I haven't submitted it upstream at the time of writing.
broot --print-shell-function bash >> ~/.bash_profile
.# aelius
_pkgname=broot
pkgbase="mingw-w64-${_pkgname}"
pkgname=("${MINGW_PACKAGE_PREFIX}-${_pkgname}")
pkgver=1.39.1
pkgrel=1
pkgdesc='Fuzzy Search + tree + cd; a better way to navigate directories'
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://dystroy.org/broot/'
license=('MIT')
makedepends=("${MINGW_PACKAGE_PREFIX}-rust")
source=("https://github.com/Canop/broot/archive/v$pkgver/$_pkgname-v$pkgver.tar.gz")
sha256sums=('b186eaa995a50ef36f0d166104350e4f5c1a0b74cbe7ef101eb16b68fb028cdf')
# options=('')
conflicts=("${MINGW_PACKAGE_PREFIX}-${_pkgname}-git")
build() {
cd $_pkgname-$pkgver
cargo build --release --locked #--frozen
}
package() {
cd $_pkgname-$pkgver
install -Dt "${pkgdir}${MINGW_PREFIX}/bin" "target/release/$_pkgname"
sed -i "s/#version/$pkgver/" man/page
# Theoretically we could get the date from the CHANGELOG.md but it seems that the
# CHANGELOG.md entry for the current version isn't actually in the current release.
# changelog_date=$(sed -n "s/.*v$pkgver - \(.*\)$/\1/p" CHANGELOG.md)
sed -i "s/#date//" man/page
install -Dm644 man/page "${pkgdir}${MINGW_PREFIX}/share/man/man1/$_pkgname.1"
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/$_pkgname/LICENSE"
install -Dm644 resources/icons/vscode/vscode.ttf "${pkgdir}${MINGW_PREFIX}/share/fonts/TTF/vscode.ttf"
}
Hello so I have a cargo install on my Windows computer and it seems like it works under MSYS2 Mingw64 but after running my Mingw64 terminal under Administrator and then trying broot and telling it to complete the br part it says this:
So it looks like I need to manually figure out how to source the "br function initialization" and then add that to my .bashrc myself. So I think that means source the 'br' script but I am not sure.