UNPKG

hyper-profile

Version:

Simple profile manager for the Hyper terminal. Currently only supports Windows PowerShell.

13 lines (10 loc) 405 B
const path = require('path'); const { getDocumentsFolder } = require('platform-folders'); function getShellDir(shell) { if (shell.toLowerCase() === 'powershell') { return path.join(getDocumentsFolder(), 'WindowsPowerShell'); } // Add more cases for other shells as needed throw new Error(`Profiles directory not defined for shell: ${shell}`); } module.exports = { getShellDir };