Skip to content

Instantly share code, notes, and snippets.

@nxtr
Created January 10, 2021 12:56
Show Gist options
  • Save nxtr/0715d0fc6ab163b7b03efce22445e934 to your computer and use it in GitHub Desktop.
Save nxtr/0715d0fc6ab163b7b03efce22445e934 to your computer and use it in GitHub Desktop.
Chrome OS, Crostini, Sommelier: Import environment from ~/.bash_profile and ~/.profile
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Use this file to customize per-user sommelier options.
#
# For documentation, see:
# https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/vm_tools/sommelier/
# Import environment from ~/.bash_profile and ~/.profile
env -i $(systemctl --user show-environment) bash --norc -l -c 'systemctl --user import-environment $(compgen -e)'
# Set default X resources at startup.
if [ -f ~/.Xresources ]; then
xrdb -merge ~/.Xresources
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment