mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-07-28 00:47:44 +00:00
Add completer
This commit is contained in:
parent
74a0f09d71
commit
f542cc71cf
2 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
def theme-to-nix [
|
def theme-to-nix [
|
||||||
theme: record, # The theme to convert to Nix.
|
theme: record # The theme to convert to Nix.
|
||||||
] -> nothing {
|
] {
|
||||||
$theme
|
$theme
|
||||||
| items { |key, value|
|
| items { |key, value|
|
||||||
let key = match $key {
|
let key = match $key {
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
# Visualizes a theme in the terminal.
|
# Visualizes a theme in the terminal.
|
||||||
def main [
|
def main [
|
||||||
theme: string, # The path to the theme to visualize.
|
theme: string@"ls themes" # The path to the theme to visualize.
|
||||||
] -> nothing {
|
] {
|
||||||
if not ($env.COLORTERM | str contains "truecolor") {
|
if not ($env.COLORTERM | str contains "truecolor") {
|
||||||
echo "your terminal emulator doesn't support truecolor, colors may be wrong\n"
|
echo "your terminal emulator doesn't support truecolor, colors may be wrong\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue