blob: f537524375ea73f9bdd02011f5721bdf0a22e812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
* XDG
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
* PATH
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
* Dbus
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
* 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
|