summaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-02-28 16:56:34 -0600
committerzachir <zachir@librem.one>2025-02-28 16:56:34 -0600
commitb9499927810490c6032c8e7516ffb65afd4ae27d (patch)
treefd839669d095278a661900ff1b70e635b642869a /sh/profile
parent1459d4c670b9840b4b549f416ffd069644cb2535 (diff)
parentb49362306bebbcd77517940203e981d263b31d0e (diff)
Merge branch 'master' into cla
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile16
1 files changed, 15 insertions, 1 deletions
diff --git a/sh/profile b/sh/profile
index 64401f3..effba41 100644
--- a/sh/profile
+++ b/sh/profile
@@ -63,7 +63,7 @@ export GDK_SCALE=1
export GDK_DPI_SCALE=1
# Theming
-export QT_QPA_PLATFORMTHEME=qt5ct
+export QT_QPA_PLATFORMTHEME=qt6ct
# Fix wayland stuff
export MOZ_ENABLE_WAYLAND=1
@@ -131,3 +131,17 @@ addtopath "/var/lib/flatpak/exports/bin"
unset -f addtopath
unset USERPATH
unset PATHS
+
+command_not_found_handle() {
+# don't run if not in a container
+ if [ ! -e /run/.containerenv ] && [ ! -e /.dockerenv ]; then
+ exit 127
+ fi
+
+ distrobox-host-exec "${@}"
+}
+if [ -n "${ZSH_VERSION-}" ]; then
+ command_not_found_handler() {
+ command_not_found_handle "$@"
+ }
+fi