Skip to content

Commit a32f588

Browse files
Add ~/.ghcup directory to PATH by default
1 parent 148d4bc commit a32f588

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/interpreter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ exports.main.init = () => {
4949
let env = {}
5050
env['HOME'] = app.getPath('home') // necessary for finding package database
5151
// FIXME: Where to we get the path from as a standalone application?
52-
env['PATH'] = process.env['PATH'] + ':/usr/local/bin' // pick up path from external environment if possible
52+
// pick up path from external environment if possible
53+
env['PATH'] = process.env['PATH'] + ':/usr/bin:/usr/local/bin:' + env['HOME'] + '/.ghcup/bin'
5354
env['PORT'] = port.toString()
5455
let cmd = ''
5556
let args = []

0 commit comments

Comments
 (0)