Skip to content

Commit

Permalink
Added abbreviation support for "dir" command.
Browse files Browse the repository at this point in the history
  • Loading branch information
noahzeisberg committed May 23, 2023
1 parent 8f12863 commit b9b70e2
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from pytube import YouTube

init(convert=True)
CURRENT_FYUTILS_VERSION = "1.10.2"
CURRENT_FYUTILS_VERSION = "1.10.3"
SUPPORTED_FUEL_VERSION = 1


Expand Down Expand Up @@ -786,6 +786,22 @@ def menu():
execute("explorer.exe " + os.getcwd())
continue
path = args[0]

match path:
case "~":
path = user_dir

case "#":
path = current_dir

case "@":
path = appdata_dir

case "/":
path = "C:\\"

case _:
path = path
execute("explorer.exe " + path)

case "config" | "configuration" | "settings" | "preferences":
Expand Down Expand Up @@ -892,7 +908,6 @@ def menu():
os.remove(fuel_content_dir + package + ".fuel")
print(prefix("INFO", "FUEL") + "Done! Package deletion of " + fuel_color + package + text_color + f" took {time.time() - activity_start:0.2f} seconds.")


case "update":
update_status("Updating FyUTILS...")

Expand Down

0 comments on commit b9b70e2

Please sign in to comment.