FEATURE: allow to run themes/make script from anywhere (#499)

* fix the path

* ignore the `lemnos` base of themes
This commit is contained in:
Antoine Stevan 2023-05-17 20:10:43 +02:00 committed by GitHub
parent fe93a6bac7
commit 792d8e37f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

1
themes/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
lemnos/

View File

@ -1,11 +1,13 @@
#!/usr/bin/env nu
let current_dir = ($env.CURRENT_FILE | path dirname)
let SOURCE = {
dir: ([lemnos themes] | path join)
local: "lemnos"
dir: ($current_dir | path join "lemnos" "themes")
local: ($current_dir | path join "lemnos")
remote: "https://github.com/lemnos/theme.sh"
}
let THEMES = "themes"
let THEMES = ($current_dir | path join "themes")
def make-theme [name: string] {
let colors = (