Closed lzyuz closed 1 year ago
The problem is probably due to the fact the default_prog and launch_menu options have been stripped from their default values and I've only set these options for mac and windows machines in the current options.
default_prog
launch_menu
The current options:
local platform = require('utils.platform')() local options = { default_prog = {}, launch_menu = {}, } if platform.is_win then options.default_prog = { 'pwsh' } options.launch_menu = { { label = 'PowerShell Core', args = { 'pwsh' } }, { label = 'PowerShell Desktop', args = { 'powershell' } }, { label = 'Command Prompt', args = { 'cmd' } }, { label = 'Nushell', args = { 'nu' } }, { label = 'Git Bash', args = { 'C:\\Users\\kevin\\scoop\\apps\\git\\current\\bin\\bash.exe' }, }, } elseif platform.is_mac then options.default_prog = { '/opt/homebrew/bin/fish' } options.launch_menu = { { label = 'Bash', args = { 'bash' } }, { label = 'Fish', args = { '/opt/homebrew/bin/fish' } }, { label = 'Nushell', args = { '/opt/homebrew/bin/nu' } }, { label = 'Zsh', args = { 'zsh' } }, } end return options
I think a fix would be just add a new esleif block for linux with the path to your preferred shell and you should be good to go E.g.:
esleif
elseif platform.is_linux then options.default_prog = { '/usr/bin/fish' } options.launch_menu = { { label = 'Bash', args = { '/usr/bin/bash' } }, { label = 'Fish', args = { '/usr/bin/fish' } }, { label = 'Zsh', args = { '/usr/bin/zsh' } }, } end
or you could just remove if..else block altogether and hard code it in the options table. Hope this solves the issue 😎.
if..else
options
The problem is probably due to the fact the
default_prog
andlaunch_menu
options have been stripped from their default values and I've only set these options for mac and windows machines in the current options.The current options:
I think a fix would be just add a new
esleif
block for linux with the path to your preferred shell and you should be good to go E.g.:or you could just remove
if..else
block altogether and hard code it in theoptions
table. Hope this solves the issue 😎.