diff options
-rw-r--r-- | sh/.profile | 3 | ||||
-rw-r--r-- | zsh/.config/zsh/.zprofile | 6 | ||||
-rw-r--r-- | zsh/.config/zsh/.zshrc | 3 | ||||
-rw-r--r-- | zsh/.zshenv | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/sh/.profile b/sh/.profile index ce443ce..3f24b42 100644 --- a/sh/.profile +++ b/sh/.profile @@ -13,6 +13,9 @@ export BROWSER="xdg-open" export PATH="$PATH:$HOME/.local/bin" +# Adopt the behavior of the system wide configuration for application specific settings +# +# See: https://wiki.archlinux.org/title/Command-line_shell#/etc/profile for script in "$XDG_CONFIG_HOME"/profile.d/*.sh; do if [ -r "$script" ]; then # shellcheck disable=1090 diff --git a/zsh/.config/zsh/.zprofile b/zsh/.config/zsh/.zprofile new file mode 100644 index 0000000..9caf2a4 --- /dev/null +++ b/zsh/.config/zsh/.zprofile @@ -0,0 +1,6 @@ +#!/bin/zsh + +# Adopt the behavior of the system wide configuration +# +# See: https://wiki.archlinux.org/title/Zsh#Startup/Shutdown_files +emulate sh -c 'source ~/.profile' diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 08d984a..3967930 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -49,6 +49,9 @@ alias grep='grep --color=auto' alias ipa="ip -s -c -h a" alias untar="tar -zxvf" +# Adopt the behavior of the system wide configuration for application specific settings +# +# See: https://wiki.archlinux.org/title/Command-line_shell#/etc/profile for script in "$XDG_CONFIG_HOME"/zsh/.zshrc.d/*.zsh; do if [ -r "$script" ]; then source "$script" diff --git a/zsh/.zshenv b/zsh/.zshenv index 5fad2b0..6e87795 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,5 +1,3 @@ #!/bin/zsh -emulate sh -c '. ~/.profile' - export ZDOTDIR="$XDG_CONFIG_HOME/zsh" |