Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 05 13:21
    vladdoster closed #417
  • Dec 05 13:17
    Gerrit-K commented #352
  • Dec 02 19:44
    jankatins commented #417
  • Dec 02 19:43
    jankatins synchronize #417
  • Dec 02 19:38
    jankatins commented #417
  • Dec 02 18:59
    vladdoster commented #417
  • Dec 02 18:58
    vladdoster commented #417
  • Dec 02 18:57
    vladdoster commented #429
  • Dec 02 18:57
    vladdoster commented #429
  • Dec 02 13:22
    vladdoster commented #420
  • Dec 02 13:22
    vladdoster commented #420
  • Dec 01 15:20
    psprint synchronize #406
  • Dec 01 15:02
    psprint commented #435
  • Dec 01 13:47
    psprint synchronize #435
  • Dec 01 13:04
    jankatins commented #435
  • Dec 01 12:37
    jankatins commented #417
  • Dec 01 12:11
    github-actions[bot] labeled #435
  • Dec 01 12:11
    psprint review_requested #435
  • Dec 01 12:11
    psprint review_requested #435
  • Dec 01 12:11
    psprint review_requested #435
vladislav doster
@vladdoster
Does windows have symlinks? I haven’t used it in forever
Or change lbin to mv
Anupam Srivastava
@anupamsr
Hmm
vladislav doster
@vladdoster
It obviously works, but it’s calling it on when running one of the ices
Anupam Srivastava
@anupamsr
It does, in a way
I tried mv earlier btw, and now again. No help
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
This is the issue
vladislav doster
@vladdoster
Where is /S coming from
Anupam Srivastava
@anupamsr
1814         ((#i)*.exe|(#i)*.pe32)
1815             →zinit-extract() {
1816                 command chmod a+x -- ./$file
1817                 ./$file /S /D="`cygpath -w $PWD`"
1818             }
1819             ;;
this is from zinit-install.zsh
vladislav doster
@vladdoster
Can you open an issue so I can track this?
Anupam Srivastava
@anupamsr
No idea what it is supposed to do: commit id c1163ff3abf38fd99e925581041c5499e539e6aa
vladislav doster
@vladdoster
Also, what happens if you only use “
Or vice versa
Might try that
Anupam Srivastava
@anupamsr
Oh. So double quote is probably not a good idea because it expands wildcards, but it works in .zshrc and satisfies my ocd of shellchek :)
come to think of it, i suppose it is best to use single quote everywhere
*when using zinit
Anupam Srivastava
@anupamsr
vladislav doster
@vladdoster
Thanks @Anupam
Sebastian Gniazdowski
@psprint
@vladdoster @anupamsr The /S /D comes from Firefox windows installer.. Sorry for not commenting this, that what the *.exesupport in ziextractis is actually Firefox installer support, experimental proof of concept to introduce a more versatile support later.. This is what makes pack for firefox on windows work
vladislav doster
@vladdoster
@psprint thanks for the insight on the issue
I haven’t used windows in over a decade so I’m getting up to speed with windows related Zinit related code
andriy melnyk ╔╬═╚╗╠ ╠╣╔╦╣╚╗ ╔╬╗╚╗╚╝
@turboBasic
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
btw, how did you enable this log output?
vladislav doster
@vladdoster
@turboBasic I don't follow your question?
andriy melnyk ╔╬═╚╗╠ ╠╣╔╦╣╚╗ ╔╬╗╚╗╚╝
@turboBasic
@anupamsr @vladdoster i'm curious how to enable this kind of log during startup:
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
vladislav doster
@vladdoster
XTRACE (-x, ksh: -x)
    Print commands and their arguments as they are executed. The output is preceded by the value of $PS4, formatted as described in Prompt Expansion.
exec zsh -x
@turboBasic
here is a more interesting example for you
zsh -icx "zinit for id-as'age' as'program' from'gh-r' ver'latest' pick'age/*' @FiloSottile/age"
andriy melnyk ╔╬═╚╗╠ ╠╣╔╦╣╚╗ ╔╬╗╚╗╚╝
@turboBasic
@vladdoster thanks, i was quite surprised that setopt xtrace shows file and line numbers, the new learning for me despite using zsh couple of years
kmath313
@kmath313
Hi all, I'm trying to install neovim from gh-r. when i run the below from an interactive terminal it works fine but when i put it in my .zshrc it doesn't create the link in polaris/bin
zinit ice from'gh-r' nocompile lbin'!**/nvim'
zinit load neovim/neovim
vladislav doster
@vladdoster
I assume you changed the recipe on the wiki in an attempt to use lbin, right?
vladislav doster
@vladdoster
use recipe on github wiki and change sbin' to lbin'!
xecho -e "\n--- $(which nvim)\n" ;zi delete neovim/neovim -y; echo -e "--- $(which nvim)\n\n";
zi for \
    from'gh-r' \
    nocompile \
    nocompletions \
    sbin'!**/nvim -> nvim' \
    ver'nightly' \
  @neovim/neovim;
echo -e "\n\n--- $(which nvim)\n---- $(nvim --version)"

echo -e "\n\n--- $(which nvim)\n\n" ;zi delete neovim/neovim -y; echo -e "\n\n--- $(which nvim)\n\n";
zi for \
    from'gh-r' \
    nocompile \
    nocompletions \
    lbin'!**/nvim -> nvim' \
    ver'nightly' \
  @neovim/neovim;
echo -e "\n\n--- $(which nvim)\n\n---- $(nvim --version)"
vladislav doster
@vladdoster
And if you want the ice syntax
zinit ice from'gh-r' nocompile lbin'!**/nvim -> nvim'
zinit load @neovim/neovim
kmath313
@kmath313
thanks @vladdoster!! that worked a charm. i'm still trying to understand the syntax correctly, i'll get there eventually.
vladislav doster
@vladdoster

@kmath313 np, happy to help.

That behavior is confuses me too. I think there is a open PR that might fix this issue. On the other hand, I’ve hit the same exact issue trying you brought up, but didn’t realize it worked if ran interactively.

So TLDR; the expected behavior is to have same behavior across interactive and scripted zi commands. I’ll check this against the open PR to see if it fixes it.

I had assumed it had to do with trying to create a softlink and not pointing it to the whole nvim dir which has files nvim needs. Idk lol
Stefanqn
@Stefanqn
all my fbins suddenly stopped working
vladislav doster
@vladdoster
vladislav doster
@vladdoster

all my fbins suddenly stopped working

@jankatins possible fallout from your PR?

viper
@viper.:matrix.org
[m]
Hello 👋 I noticed I get some .zwc files in my $FAST_WORK_DIR, is there any doc about what are those?
Christo Kotze
@onaforeignshore
Those are compiled files which load faster as they have already been interpreted
Peter
@vectorkappa:matrix.org
[m]
Hello! After setting up fast-syntax-highlighting, zsh shows ZPLGM: assignment to invalid subscript range. Plugin is loaded with zinit ice wait lucid atinit"ZPLGM[COMPINIT_OPTS]=-C; zpcompinit; zpcd replay"
2 replies
Peter
@vectorkappa:matrix.org
[m]
Also, is there a way to load completions from command output, e.g. from rustup completions zsh
Peter
@vectorkappa:matrix.org
[m]
Anyone reading this? Lmao
Ngoc Pham
@ngocphamm
Is there any way to get a program from another source, and not just gh, or gh-r? I'm trying to get this https://downloads.dockerslim.com/releases/1.39.0/dist_linux_arm64.tar.gz
5 replies