2020-12-27 08:14:40 +01:00
|
|
|
* Variables
|
|
|
|
|
|
|
|
Here we set some important variables that are used by other parts of the
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
** XDG
|
2016-10-09 00:02:50 +02:00
|
|
|
|
|
|
|
I keep my XDG files in the normal place, but specifying them in an
|
|
|
|
environment variable makes things a little easier/clearer.
|
|
|
|
|
|
|
|
Set the config home.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Set the data home.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
export XDG_DATA_HOME="${HOME}/.local/share"
|
|
|
|
#+END_SRC
|
|
|
|
|
2020-12-27 08:14:40 +01:00
|
|
|
** PATH
|
2016-10-09 00:02:50 +02:00
|
|
|
|
|
|
|
Add composer binaries to PATH.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
PATH="${XDG_CONFIG_HOME}/composer/vendor/bin:${PATH}"
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Add =$HOME/usr/bin= to =$PATH= because that is where I keep all of
|
|
|
|
my personal utilities and helper commands.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
PATH="${HOME}/usr/bin:${PATH}"
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Export it so programs and subshells know about it.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
export PATH
|
|
|
|
#+END_SRC
|
|
|
|
|
2020-12-27 08:14:40 +01:00
|
|
|
** Dbus
|
2016-10-09 00:02:50 +02:00
|
|
|
|
|
|
|
Make the session bus address fixed so other processes can know where
|
|
|
|
to find it.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Export it so programs and subshells know about it.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
export DBUS_SESSION_BUS_ADDRESS
|
|
|
|
#+END_SRC
|
|
|
|
|
2020-12-27 08:14:40 +01:00
|
|
|
** .Net
|
|
|
|
|
|
|
|
I don't want to send any telemetry to Microsoft about my usage of the ~dotnet~ tool.
|
|
|
|
|
|
|
|
#+begin_src sh
|
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT 1
|
|
|
|
#+end_src
|
|
|
|
|
2016-10-09 00:02:50 +02:00
|
|
|
* Systemd
|
|
|
|
|
|
|
|
Import some variables into the systemd environment so that services
|
|
|
|
started after this know about them.
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh
|
|
|
|
systemctl --user import-environment PATH
|
|
|
|
#+END_SRC
|