chrissimpkins / glue

Glue is a plugin that joins your shell to Sublime Text in quasi-perfect harmony.
http://gluedocs.readthedocs.org/
MIT License
253 stars 10 forks source link

Unable to set PowerShell as default shell? #7

Closed joshearl closed 10 years ago

joshearl commented 10 years ago

Hey Chris,

I'm working on a little writeup about Glue for my Sublime newsletter and I'm playing around with the plugin. It looks great!

I'm on my Windows machine at the minute, and I can't seem to get Glue to use PowerShell.

Here's what I've got in my Glue.sublime-settings:

{
    "glue_userpath" : "",
    "glue_shellpath" : "C:\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "glue_ps1" : "█",
    "glue_display_path": true,
    "glue_exit_message" : "Bye Bye. ♥ Glue",
    "glue_working_directory": ""
}

What am I missing here? I can run PowerShell commands from the Glue prompt like this:

powershell Get-ChildItem

But it's using the standard Windows cmd.exe otherwise.

Suggestions?

chrissimpkins commented 10 years ago

Thanks much for checking it out josh. Windows paths have been a bit problematic. I will look into this when I am back at a computer this evening and see if we can work it out.

Really look forward to the writeup!

chrissimpkins commented 10 years ago

I am running this test with Sublime Text 3 on a Mac using a Parallels install of Windows 7. Here is my Glue.sublime-settings file:

{
    "glue_shellpath": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
}

After I save the settings file, close ST, and restart, the output appears to be coming from powershell:

powershell-example

(It looks like I need to replace the Windows carriage returns...)

and when I remove the glue_shellpath setting, save and restart ST the output is coming from cmd.exe:

cmdexe-example

Are you using the default settings file or the user settings file? By the looks of your glue_userpath setting, that should be working for you (assuming that it is the correct filepath).

Are you on ST2 or ST3?

joshearl commented 10 years ago

Hah, user error. :) I had my path set to C:\System32 instead of C:\Windows\System32

Sheesh, you'd think I haven't been a Windows user for almost 20 years...

Thanks, Chris!

On Sat, Apr 5, 2014 at 7:45 PM, Chris Simpkins notifications@github.comwrote:

I am running this test with Sublime Text 3 on a Mac using a Parallels install of Windows 7. Here is my Glue.sublime-settings file:

{ "glue_shellpath": "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe"}

After I save the settings file, close ST, and restart, the output appears to be coming from powershell:

[image: powershell-example]https://cloud.githubusercontent.com/assets/4249591/2624034/0b48afe4-bd1b-11e3-80e9-010d2a36f59e.png

(It looks like I need to replace the Windows carriage returns...)

and when I remove the glue_shellpath setting, save and restart ST the output is coming from cmd.exe:

[image: cmdexe-example]https://cloud.githubusercontent.com/assets/4249591/2624044/934ba00e-bd1b-11e3-8bd9-73bf5c185698.png

Are you using the default settings file or the user settings file? By the looks of your glue_userpath setting, that should be working for you (assuming that it is the correct filepath).

Are you on ST2 or ST3?

Reply to this email directly or view it on GitHubhttps://github.com/chrissimpkins/glue/issues/7#issuecomment-39654408 .

chrissimpkins commented 10 years ago

My pleasure! I, on the other hand, have next to no experience on the windows shell side so it's just dumb luck (and a bit of reading...).

Glad that it worked out. I will keep an eye out for your article. Feel free to let me know if you have any other questions.

Also, I could definitely use windows testers (and code contributors). If you have any interest let me know.

-C