mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-07-27 16:37:46 +00:00
Fix completer
This commit is contained in:
parent
58c0eb5480
commit
e78e95f178
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue