Package Details: oh-my-posh 26.7.0-1

Git Clone URL: https://aur.archlinux.org/oh-my-posh.git (read-only, click to copy)
Package Base: oh-my-posh
Description: A prompt theme engine for any shell.
Upstream URL: https://github.com/JanDeDobbeleer/oh-my-posh
Keywords: oh-my-posh
Licenses: MIT
Submitter: wszqkzqk
Maintainer: wszqkzqk
Last Packager: wszqkzqk
Votes: 9
Popularity: 0.56
First Submitted: 2022-10-20 13:30 (UTC)
Last Updated: 2025-06-14 14:16 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

1 2 3 Next › Last »

wszqkzqk commented on 2025-06-14 15:06 (UTC) (edited on 2025-06-14 15:06 (UTC) by wszqkzqk)

@AnotherAURUser Oh, yes. -O3 sometimes is not as effective as -O2. Anyway, let's keep it as it is and follow Arch Linux's custom.

AnotherAURUser commented on 2025-06-14 15:03 (UTC) (edited on 2025-06-14 15:05 (UTC) by AnotherAURUser)

@wszqkzqk as you can see from these tests.. there is no need in these flags. optimized script runs slower than a default one. I am not asking you for anything.

wszqkzqk commented on 2025-06-14 14:57 (UTC)

@AnotherAURUser According to Arch Linux's custom, please modify your compiler flags in you own makepkg.conf instead of asking each package to do so.😊

AnotherAURUser commented on 2025-06-14 14:37 (UTC) (edited on 2025-06-14 14:38 (UTC) by AnotherAURUser)

ok @wszqkzqk, here is the answer:


=== SIMPLIFIED OH-MY-POSH BENCHMARK ===

[1/5] Basic prompt generation test
Using theme: catppuccin.omp.json
Optimized:     avg=0.001562s
Non-optimized: avg=0.001553s
Improvement:   -0.61%

[2/5] Rapid generation test (2000 runs)
Optimized:     total=3.123s, avg=0.001562s
Non-optimized: total=3.111s, avg=0.001555s
Total improvement: -0.40%

[3/5] Multi-theme comparison
Theme 1: catppuccin.omp.json
  Opt: 0.001568s, Non-opt: 0.001553s
  Improvement: -0.94%

Theme 2: peru.omp.json
  Opt: 0.001557s, Non-opt: 0.001552s
  Improvement: -0.31%

Theme 3: the-unnamed.omp.json
  Opt: 0.001560s, Non-opt: 0.001552s
  Improvement: -0.49%

[4/5] Multi-threaded stress test (2000 runs, 2 threads)
Optimized:     avg=0.003148s
Non-optimized: avg=0.003127s
Improvement:   -0.67%

[5/5] Binary size comparison
Optimized binary:     22,222,616 bytes
Non-optimized binary: 27,313,752 bytes
Size reduction:       18.64%

=== BENCHMARK COMPLETE ===

At least now it's possible to find peace, if one craves more optimization.

wszqkzqk commented on 2025-06-14 13:17 (UTC)

@AnotherAURUser You can maintain the CFLAGS in your own /etc/pacman.conf instead of change the packaging process.

wszqkzqk commented on 2025-06-14 13:13 (UTC)

@AnotherAURUser If there is no strong evidence that the performance improvement is significant, I would prefer to follow Go package guidelines.

AnotherAURUser commented on 2025-06-14 13:10 (UTC) (edited on 2025-06-14 13:11 (UTC) by AnotherAURUser)

guys, what if update code like this:


build() {
    export CC=clang
    export CXX=clang++
    export CGO_CPPFLAGS="${CPPFLAGS} -O3 -march=native -flto"
    export CGO_CFLAGS="${CFLAGS} -O3 -march=native -flto"
    export CGO_CXXFLAGS="${CXXFLAGS} -O3 -march=native -flto"
    export CGO_LDFLAGS="${LDFLAGS} -O3 -march=native -flto"
    export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"

    cd "$pkgname-$pkgver/src"
    go mod download

go build -gcflags="all=-l=4 -d=ssa/check_bce/debug=0" \
  -ldflags="-linkmode=external -s -w \
  -X github.com/jandedobbeleer/oh-my-posh/src/build.Version=$pkgver \
  -X github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date +%F) \
  -extldflags=-Wl,-O3" \
  -o "$pkgname"
}

will it bring more performance? kinda want to add only optimized things into cachyos

ZhangHua commented on 2025-02-27 13:07 (UTC)

oh-my-posh completion is not supported anymore because of github issue 6103. And I do not find any replacement for it. So I think we may have to remove those completions in package or patch the source to revert the commit .

brody commented on 2025-01-20 17:13 (UTC) (edited on 2025-01-20 17:13 (UTC) by brody)

gcc is not needed in the makedepends field. It's in base-devel.

mrlackride commented on 2024-11-21 22:02 (UTC)

New update if anyone encountered same issue since it was my first time getting such a problem, I had to rewrite version in PKGBUILD file and change SHA256sum, after making makepkg and use sudo pacman -U oh-my-posh-24.6.5-1-x86_64.pkg.tar.zst everything worked! Note: I cleaned pkgbuild and cache but for some reasons it saved old PKGBUILD file with old version