From 29066878b772c55ce6347eed04859e2a1338872b Mon Sep 17 00:00:00 2001 From: Andy Carlson <2yinyang2@gmail.com> Date: Sat, 16 Nov 2024 10:54:03 -0500 Subject: [PATCH] add more powershell and also gleam --- colors.go | 1 + example/{foo.ps1 => src/foo.gleam} | 0 example/src/foo.ps1 | 0 file-icons.go | 6 +++++- 4 files changed, 6 insertions(+), 1 deletion(-) rename example/{foo.ps1 => src/foo.gleam} (100%) create mode 100644 example/src/foo.ps1 diff --git a/colors.go b/colors.go index a930c48..c638565 100644 --- a/colors.go +++ b/colors.go @@ -351,6 +351,7 @@ func generateColors() { "f": {FgRGB(5, 2, 0), FgRGB(2, 1, 0), true}, "fs": {FgRGB(0, 4, 5), FgRGB(0, 2, 4), true}, "gb": {FgRGB(0, 4, 3), FgRGB(0, 2, 1), true}, + "gleam": {FgRGB(5, 3, 5), FgRGB(5, 1, 5), true}, "go": {FgRGB(2, 5, 3), FgRGB(2, 3, 3), true}, "graphql": {FgRGB(5, 3, 5), FgRGB(5, 1, 5), true}, "groovy": {FgRGBT(5, 4, 3), FgRGBT(5, 3, 1), false}, diff --git a/example/foo.ps1 b/example/src/foo.gleam similarity index 100% rename from example/foo.ps1 rename to example/src/foo.gleam diff --git a/example/src/foo.ps1 b/example/src/foo.ps1 new file mode 100644 index 0000000..e69de29 diff --git a/file-icons.go b/file-icons.go index b20d41d..5fbfea1 100644 --- a/file-icons.go +++ b/file-icons.go @@ -93,6 +93,7 @@ var icons = map[string]string{ "git": "\ue702", "go": "\ue724", "graphql": "\ue662", + "gleam": "★", "glp": "󰆧", "groovy": "\ue775", "gruntfile.js": "\ue74c", @@ -142,6 +143,7 @@ var icons = map[string]string{ "prisma": "\ue684", "ppt": "\uf1c4", "psd": "\ue7b8", + "pwsh": "󰨊", "py": "\ue606", "r": "\ue68a", "rb": "\ue21e", @@ -330,6 +332,9 @@ var aliases = map[string]string{ "phtml": "php", "gslides": "ppt", "pptx": "ppt", + "ps1": "pwsh", + "psd1": "pwsh", + "psm1": "pwsh", "pxd": "py", "pyc": "py", "pyx": "py", @@ -356,7 +361,6 @@ var aliases = map[string]string{ "csh": "shell", "fish": "shell", "ksh": "shell", - "ps1": "shell", "sh": "shell", "zsh": "shell", "zsh-theme": "shell",