From 3a1d5d5139c91b1656c27596cdbe4989a0f49761 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sat, 15 Jul 2023 19:46:44 +0200 Subject: [PATCH] Remove container/vm settings & enable firefox wayland backend --- .bashrc | 7 +------ .profile | 13 +++++-------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.bashrc b/.bashrc index 70e9ed6..0a0a081 100644 --- a/.bashrc +++ b/.bashrc @@ -52,13 +52,8 @@ if [ "$force_color_prompt" == "yes" ] && [ -z "$color_prompt" ]; then fi fi -# Show different prompts for vm users or "normal" users if [ "$color_prompt" = yes ]; then - if [ "$CONTAINER_OR_VM" = true ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' - else - PS1="\[\033[1;35m\]\u\[\033[1;34m\]@\[\033[1;30m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]$ " - fi + PS1="\[\033[1;35m\]\u\[\033[1;34m\]@\[\033[1;30m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]$ " else PS1='\u@\h:\w\$ ' fi diff --git a/.profile b/.profile index 6f38c3c..26721e9 100644 --- a/.profile +++ b/.profile @@ -5,14 +5,6 @@ export PAGER=less export BROWSER=/usr/bin/firefox export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" -CONTAINER_OR_VM=false - -if [ -z "$(which systemd-detect-virt)" ] || [ "$(systemd-detect-virt)" != "none" ]; then - CONTAINER_OR_VM=true -fi - -export CONTAINER_OR_VM - # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists @@ -21,4 +13,9 @@ if [ -n "$BASH_VERSION" ]; then fi fi +if [ "$XDG_SESSION_TYPE" = "wayland" ]; then + export MOZ_ENABLE_WAYLAND=1 + export MOZ_DBUS_REMOTE=1 +fi + PATH="$HOME/.local/bin:$PATH"