Move ZSH config to org-mode
This commit is contained in:
parent
b96e761e95
commit
811e0207d0
4 changed files with 68 additions and 24 deletions
1
zsh/.gitignore
vendored
Normal file
1
zsh/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.profile
|
24
zsh/.profile
24
zsh/.profile
|
@ -1,24 +0,0 @@
|
|||
## XDG:
|
||||
|
||||
# I keep my XDG files in the normal place, but specifying them in an
|
||||
# environment variable makes things a little easier/clearer.
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
|
||||
## PATH:
|
||||
|
||||
# Add composer bin to PATH
|
||||
PATH="${XDG_CONFIG_HOME}/composer/vendor/bin:${PATH}"
|
||||
# Add "$HOME/usr/bin" to $PATH because that is where I keep all of my
|
||||
# personal utilities and helper commands.
|
||||
PATH="${HOME}/usr/bin:${PATH}"
|
||||
export PATH
|
||||
|
||||
## Dbus
|
||||
|
||||
# Make the session bus address fixed so other processes can know where
|
||||
# to find it.
|
||||
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
systemctl --user import-environment PATH
|
6
zsh/GNUmakefile
Normal file
6
zsh/GNUmakefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
include ../dotfiles.mk
|
||||
|
||||
all: .profile
|
||||
|
||||
.%: %.org
|
||||
$(call tangle,sh)
|
61
zsh/profile.org
Normal file
61
zsh/profile.org
Normal file
|
@ -0,0 +1,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
|
Loading…
Reference in a new issue