From 63967579189cc4c279676eb7fb179a13f420c5b6 Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Wed, 7 Aug 2024 22:00:39 +0200 Subject: [PATCH] Add keybase on Linux and set Wayland environment variables --- fish/.config/fish/fish_variables | 2 ++ fish/.config/fish/functions/keybase.fish | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables index f307601..1dbdc80 100644 --- a/fish/.config/fish/fish_variables +++ b/fish/.config/fish/fish_variables @@ -7,6 +7,8 @@ SETUVAR --export BAT_STYLE:plain SETUVAR --export BAT_THEME:Nord SETUVAR --export COLORTERM:truecolor SETUVAR --export DIRENV_LOG_FORMAT:\x1d +SETUVAR --export ELECTRON_OZONE_PLATFORM_HINT:auto +SETUVAR --export GDK_BACKEND:wayland SETUVAR --export GIT_MERGE_AUTOEDIT:no SETUVAR --export HOMEBREW_CURLRC:1 SETUVAR --export LANG:en_US\x2eUTF\x2d8 diff --git a/fish/.config/fish/functions/keybase.fish b/fish/.config/fish/functions/keybase.fish index f7f185e..f15f254 100644 --- a/fish/.config/fish/functions/keybase.fish +++ b/fish/.config/fish/functions/keybase.fish @@ -1,3 +1,9 @@ function keybase --wraps=keybase.exe --description 'alias keybase keybase.exe' - keybase.exe $argv + if command -v keybase >/dev/null + command keybase $argv + else if command -v keybase.exe >/dev/null + keybase.exe $argv + else + return 1 + end end -- 2.51.2