feat(wezterm): add wezterm config

This commit is contained in:
js0ny 2024-12-22 09:24:18 +00:00
parent 8bb2d9fbe8
commit baf0ee5255
7 changed files with 142 additions and 8 deletions

View file

@ -1,7 +1,18 @@
# Use XDG Base Directory Specification and its similar structure for Windows
# wget
${function:wget} = {wget --hsts-file $XDG_CACHE_HOME/wget-hsts $args}
if (Get-Command wget -ErrorAction SilentlyContinue) {
${function:wget} = {wget --hsts-file $XDG_CACHE_HOME/wget-hsts $args}
}
# yarn v1
${function:yarn} = {yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config.yaml $args}
if (Get-Command yarn -ErrorAction SilentlyContinue) {
${function:yarn} = {yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config.yaml $args}
}
if ($Env:WEZTERM) { # Environment variable injected by wezterm/wezterm.lua
${function:icat} = {wezterm imgcat $args}
}
elseif ($Env:KITTY) {
${function:icat} = {kitty +kitten icat $args}
}