Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Get user by getpass
Browse files Browse the repository at this point in the history
  • Loading branch information
Simatwa committed May 28, 2023
1 parent 132e4ff commit 2f336c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GPTCLI/gptcli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/python
from . import __version__, __author__, __repo__, __info__
from colorama import Fore, Back
from os import getlogin, getcwd, path
from os import getcwd, path
from getpass import getuser
from rich.console import Console
from rich.panel import Panel
from rich.style import Style
Expand Down Expand Up @@ -176,7 +177,7 @@ def get_args(self):
parser.add_argument(
"--prompt",
help="Customizes the prompt display",
default=f"┌─[{getlogin().capitalize()}@GPT-CLI]─(%H:%M:%S)",
default=f"┌─[{getuser().capitalize()}@GPT-CLI]─(%H:%M:%S)",
dest="settings",
nargs="*",
)
Expand Down

0 comments on commit 2f336c0

Please sign in to comment.