Skip to content

Commit

Permalink
Remove powershell support
Browse files Browse the repository at this point in the history
Because powershell defaults to interactive mode, some applications
don't correctly execute as non-interactive and this breaks their
behavior.
  • Loading branch information
codyopel committed Jan 29, 2024
1 parent 112e4f1 commit 94127b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
12 changes: 0 additions & 12 deletions default-shell.elv
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


use epm
use github.com/chlorm/elvish-stl/exec
use github.com/chlorm/elvish-stl/os
use github.com/chlorm/elvish-stl/path
use github.com/chlorm/elvish-stl/platform
Expand Down Expand Up @@ -58,16 +57,6 @@ fn install-rc-windows {|source target|
os:copy $source $target
}

fn init-session-windows {|libDir|
var rcFile = (path:join $libDir 'rc' 'Microsoft.PowerShell_profile.ps1')
var psProfileArgs = [ 'echo' '$profile' ]
try {
# Look for powershell-core
install-rc-windows $rcFile (exec:ps-out &cmd='pwsh' $@psProfileArgs)
} catch _ { }
install-rc-windows $rcFile (exec:ps-out $@psProfileArgs)
}

fn init-session-unix {|libDir|
var rcFiles = [
'bash_profile'
Expand All @@ -91,7 +80,6 @@ fn init-session {
var libDir = (epm:metadata $url)['dst']

if $platform:is-windows {
init-session-windows $libDir
return
}

Expand Down
32 changes: 0 additions & 32 deletions rc/Microsoft.PowerShell_profile.ps1

This file was deleted.

0 comments on commit 94127b8

Please sign in to comment.