1
Fork 0
mirror of https://github.com/RGBCube/ThemeNix synced 2025-07-27 16:37:46 +00:00

Fix completer

This commit is contained in:
RGBCube 2023-12-03 13:56:28 +03:00
parent 58c0eb5480
commit e78e95f178
No known key found for this signature in database

View file

@ -1,8 +1,12 @@
#!/usr/bin/env nu
def complete [] {
ls themes
}
# Visualizes a theme in the terminal.
def main [
theme: string@"ls themes" # The path to the theme to visualize.
theme: string@complete # The path to the theme to visualize.
] {
if not ($env.COLORTERM | str contains "truecolor") {
echo "your terminal emulator doesn't support truecolor, colors may be wrong\n"