aboutsummaryrefslogtreecommitdiff
path: root/zsh/zprofile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-08-01 17:29:55 +0200
committerThomas Schmucker <ts@its1.de>2026-08-01 17:29:55 +0200
commitb61387adc936dc51f1d9e84136aa9972ea8480e7 (patch)
tree9e613f01d2e381855bfdc452596d83f89e37e25e /zsh/zprofile
parent428beb1c921ce09bf269560ee67afeb628b5c247 (diff)
downloaddotfiles-b61387adc936dc51f1d9e84136aa9972ea8480e7.tar.gz
dotfiles-b61387adc936dc51f1d9e84136aa9972ea8480e7.tar.bz2
dotfiles-b61387adc936dc51f1d9e84136aa9972ea8480e7.zip
zsh: Schreibweise für Funktionen und 'source' vereinheitlicht
Diffstat (limited to 'zsh/zprofile')
-rw-r--r--zsh/zprofile10
1 files changed, 8 insertions, 2 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index cfb0fbb..7fed3a7 100644
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -1,9 +1,13 @@
1# vim: filetype=zsh 1# vim: filetype=zsh
2 2
3[[ -d "${HISTFILE:h}" ]] || mkdir -p "${HISTFILE:h}" 3if [[ ! -d "${HISTFILE:h}" ]]; then
4 mkdir -p "${HISTFILE:h}"
5fi
4 6
5add_path() { 7add_path() {
6 [[ -d "$1" ]] && path=("$1" $path) 8 if [[ -d "$1" ]]; then
9 path=("$1" $path)
10 fi
7} 11}
8 12
9set_include_lib_path() { 13set_include_lib_path() {
@@ -57,3 +61,5 @@ if [[ -x /usr/local/bin/musicpd ]] && ! pgrep "musicpd" > /dev/null; then
57 /usr/local/bin/musicpd 61 /usr/local/bin/musicpd
58fi 62fi
59 63
64unfunction add_path
65unfunction set_include_lib_path