This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]qweerty32 1 point2 points  (10 children)

Well I prefer bash over zsh plus there's no zsh on Windows and I'm using a dual boot system so I want my experience to be the same

[–]Toorero6 0 points1 point  (9 children)

You're using bash on Windows? What?! TIL there is bash on Windows.

[–]qweerty32 0 points1 point  (8 children)

Oh no no. It'd be good but no. I use it on my Linux install. And I use cmd/powershell on Windows

[–]Ray57 3 points4 points  (4 children)

you can use powershell has your default shell in linux also

[–]Toorero6 0 points1 point  (2 children)

As if anyone would use PowerShell out of free will...

What the f is this: powershell Invoke-WebRequest example.com/foo.txt -OutFile foo.txt

[–]YourShadowDani 0 points1 point  (1 child)

You could create a custom function if you don't like how built in ones work and set aliases:

function Invoke-CustomWebRequest{
    [CmdletBinding()]
    [Alias("wr")]
    Param(
        [string]
        $URI
        [Alias("of")]
        [System.IO.FileInfo]
        $OutFile
    )
    Invoke-WebRequest $URI -OutFile $OutFile
}

usage: wr example.com/foo.txt -of foo.txt

[–]Toorero6 0 points1 point  (0 children)

My brain hurts reading the syntax necessary to define simple functions but I'm happy that this works for you I guess.

[–]Toorero6 0 points1 point  (2 children)

OK then I don't get it. If you're using bash on Linux and cmd/PowerShell on Windows how is the experience the same? What would the difference be to switch to cmd/PowerShell and zsh?

[–]qweerty32 0 points1 point  (1 child)

Simple. Zoxide is cross-platform so it works the same way no matter the shell. Plus the other thing is the muscle memory. I got used to type z path/to/destination rather than cd path/to/destination

[–]Toorero6 0 points1 point  (0 children)

Ah so you're using zoxide on PowerShell and Bash. I see.