blob: c896e31d52b4084fa226b93ca7a30029003d2060 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
. ~/.profile
vars=$(declare -x -p | sed -rn 's/^declare -x ([^=]+)(=.*)?$/\1/p' | grep -xFv -e PWD -e OLDPWD -e SHLVL)
if test "$1" = '-p'; then
declare -p $vars
echo systemctl --user import-environment $vars
else
systemctl --user import-environment $vars
fi
|