Skip to content

Commit

Permalink
Try to display directory contents
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 27, 2024
1 parent ea86405 commit 6d801f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export async function registerPlugins(enablePlugins: string, version: string) {
const nuBin = shell.which('nu');
console.log('Nu binary path:', nuBin?.stdout);
const nuDir = nuBin ? path.dirname(nuBin.stdout) : '';
console.log('Directory contents:', shell.ls(nuDir));
// If on Windows convert the dir path to lowercase
const fixedDir = process.platform === 'win32' ? nuDir.toLowerCase() : nuDir;
const plugins = await globby(`${fixedDir}${path.sep}nu_plugin_*`, {
Expand Down

0 comments on commit 6d801f2

Please sign in to comment.