cmd-wrapped icon indicating copy to clipboard operation
cmd-wrapped copied to clipboard

Add support for Windows

Open TwoCarPongPong opened this issue 1 year ago • 21 comments

TwoCarPongPong avatar Jan 05 '24 01:01 TwoCarPongPong

The reason is that cmd-wrapped hasn't been tested on Windows, and there might be potential bugs when used in a non-Unix environment.

Could you please try testing this package to see if it works on Windows?

cmd-wrapped-windows-x86_64.zip

YiNNx avatar Jan 05 '24 07:01 YiNNx

thanks but it don't works

TwoCarPongPong avatar Jan 05 '24 07:01 TwoCarPongPong

1704440114466

TwoCarPongPong avatar Jan 05 '24 07:01 TwoCarPongPong

what's the result of echo $SHELL in the terminal?

YiNNx avatar Jan 05 '24 07:01 YiNNx

it is $SHELL

TwoCarPongPong avatar Jan 05 '24 07:01 TwoCarPongPong

不对啊哥们儿 你是中国人

TwoCarPongPong avatar Jan 05 '24 07:01 TwoCarPongPong

it is $SHELL

你是用的什么终端呢,PowerShell 吗

YiNNx avatar Jan 05 '24 07:01 YiNNx

不对啊哥们儿 你是中国人

但我不是哥们🤣

YiNNx avatar Jan 05 '24 07:01 YiNNx

I attempted to run it in the git bash on Windows, but it can’t work directly. (Windows' SHELL path is differently recorded from Unix) Maybe need to add some additional compatibility code for it later.

image

YiNNx avatar Jan 05 '24 08:01 YiNNx

好的妹妹 我用的就是cmd 套了WindowsTerminal的cmd

TwoCarPongPong avatar Jan 05 '24 09:01 TwoCarPongPong

FYI cmd.exe and PowerShell (including the Core one which is cross-plat) does not record command execution time. PowerShell does record execution start and even ending timestamp but they are lost once session closed, leaving only command line without any metadata stored on disk.

PowerShell/PSReadLine#1886 is expected to solve this, but still undergoing.

I myself use PowerShell a lot, but I don't think it's able to add support for it unless PowerShell itself introduced the change.

artiga033 avatar Jan 06 '24 06:01 artiga033

@artiga033 Got it. Maybe we could consider adding support for bash or zsh on Windows? I rarely use the terminal in Windows, so I'm not sure about the solutions for using zsh/bash on Windows, and how to appropriately adapt it.

YiNNx avatar Jan 06 '24 06:01 YiNNx

Windows上的最佳终端我觉得应该是powershell

blue-duty avatar Jan 08 '24 10:01 blue-duty

Windows上的最佳终端我觉得应该是powershell

poweshell执行当前目录脚本要加.\

TwoCarPongPong avatar Jan 08 '24 10:01 TwoCarPongPong

Windows上的最佳终端我觉得应该是powershell

poweshell执行当前目录脚本要加.\

加上自动补全的话我觉得还好,主要是对于Linux的基础命令支持不错,迁移体验好

blue-duty avatar Jan 08 '24 10:01 blue-duty

Windows上的最佳终端我觉得应该是powershell

poweshell执行当前目录脚本要加.\

加上自动补全的话我觉得还好,主要是对于Linux的基础命令支持不错,迁移体验好

你那个earth的定位怎么弄的bro

TwoCarPongPong avatar Jan 08 '24 10:01 TwoCarPongPong

Windows上的最佳终端我觉得应该是powershell

poweshell执行当前目录脚本要加.\

加上自动补全的话我觉得还好,主要是对于Linux的基础命令支持不错,迁移体验好

你那个earth的定位怎么弄的bro

手写哦哈哈哈哈哈哈哈

blue-duty avatar Jan 09 '24 01:01 blue-duty

I attempted to run it in the git bash on Windows, but it can’t work directly. (Windows' SHELL path is differently recorded from Unix) Maybe need to add some additional compatibility code for it later.

image

I can run it by using "cmd-wrapped 2024 -s bash" in git bash. But the output is 0. image image

Memories-Apart avatar Jan 21 '24 16:01 Memories-Apart

But the output is 0.

@Memories-Apart The reason may be the same as https://github.com/YiNNx/cmd-wrapped/issues/3#issuecomment-1878238291

YiNNx avatar Jan 21 '24 16:01 YiNNx

Windows上直接使用命令行的情况比较少,一般都是用ide内的,请问下这种有方法可以检测吗?

colommar avatar Feb 14 '24 09:02 colommar

Still waiting for windows support, currently using pwsh 7

Borber avatar May 01 '24 18:05 Borber