mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 22:07:25 -08:00
feat(debug): add shell name
This commit is contained in:
parent
52b01aff63
commit
6fea7ff017
|
@ -26,6 +26,7 @@ var debugCmd = &cobra.Command{
|
||||||
Config: config,
|
Config: config,
|
||||||
Debug: true,
|
Debug: true,
|
||||||
PWD: pwd,
|
PWD: pwd,
|
||||||
|
Shell: shellName,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
env.Init()
|
env.Init()
|
||||||
|
@ -58,5 +59,6 @@ var debugCmd = &cobra.Command{
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
|
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
|
||||||
|
debugCmd.Flags().StringVar(&shellName, "shell", "", "the shell to print for")
|
||||||
RootCmd.AddCommand(debugCmd)
|
RootCmd.AddCommand(debugCmd)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue