Jon Erickson
Jon Erickson

Reputation: 114956

Opening Solution file in Cygwin / Bash

I'm trying to set up a simple bash alias that will open a solution file in the current directory via cygstart

I'm unsuccessfully trying something like

ls | grep '.sln' | cygstart $0

I'm no expert in bash commands and was wondering what the correct command is?

Upvotes: 1

Views: 357

Answers (1)

manojlds
manojlds

Reputation: 301457

You want to try:

ls *.sln | xargs cygstart

or better:

find . -iname "*.sln" -print | xargs cygstart

Upvotes: 2

Related Questions