#!/usr/bin/bash -s # -*- mode: shell-script -*- # Copyright (C) 2023 Gokul Das B # SPDX-License-Identifier: GPL-3.0-or-later # Uncomment the following line if you need to clear all the variables # and start with a clean environment. However, this is not recommended! #unset $(env | cut -d = -f1 | xargs) source etc/profile export PATH=$HOME/.local/bin${PATH:+:$PATH} # Conditionally setting a variable if [[ "$ENVSHIM_TARGET" == "sway" ]]; then export XDG_CURRENT_DESKTOP=sway fi # Uncomment the following lines if it is desired to remove variables # set by envshim #unset ENVSHIM_TARGET # Easy way to print all environment variables in 'VAR=value' format printenv # Another way of setting variable echo 'ENVSHIM_MARKER=envshim'