Closed markox92 closed 1 month ago
Hi! Love your console colors! (Feel free to share! 😊) Question.
Do you have nano.exe
in your $env:PATH ?
Can you please paste the result of Get-Command 'nano'
?
Or maybe... have you created a nano function in your $PROFILE?
Assuming that last answer is true.: When you do gsudo nano
and a new pwsh.exe -c "nano" -noprofile
is run... it's unable to find 'nano' because the profile is not loaded, and nano.exe is not in the path.
You can tell gsudo to load the powershell profile with gsudo config PowerShellLoadProfile true
.
If your profile loads too slowly to load it on each elevation, you could add nano's path to $PATH.
makes sense?
gsudo config PowerShellLoadProfile true is solve this problem, profile is loaded fast so no problem, thanks.
About terminal colors here is with starship prompt.
{
"background": "#0D1117",
"black": "#000D1C",
"blue": "#2B4FFF",
"brightBlack": "#666666",
"brightBlue": "#5C78FF",
"brightCyan": "#5AC8FF",
"brightGreen": "#9891FF",
"brightPurple": "#5EA2FF",
"brightRed": "#DE72FF",
"brightWhite": "#FFFFFF",
"brightYellow": "#A3A0FF",
"cursorColor": "#BDC0DA",
"cyan": "#28B9FF",
"foreground": "#C9CCE6",
"green": "#8E76FF",
"name": "Modern",
"purple": "#2883FF",
"red": "#EF56FF",
"selectionBackground": "#98AEC9",
"white": "#F1F1F1",
"yellow": "#8069FF"
}
Thanks for sharing, I'll try them! Since the problem is gone, I'll close the issue now.
Issue Description
I want to run nano as admin but when I run with sudo I have error nano: The term 'nano' is not recognized as a name of a cmdlet,
Steps to Reproduce
Screenshots
https://github.com/gerardog/gsudo/assets/159203552/5769536c-bfeb-4c62-8e49-1b851c375702
Context: