From 58d6aefd2b81023f020c0a9997b9dd448508d59a Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 20:30:23 +0100 Subject: zsh fixups --- zsh/.zshenv | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) mode change 120000 => 100755 zsh/.zshenv (limited to 'zsh/.zshenv') diff --git a/zsh/.zshenv b/zsh/.zshenv deleted file mode 120000 index 9fbf4d2..0000000 --- a/zsh/.zshenv +++ /dev/null @@ -1 +0,0 @@ -.config/zsh/.zshenv \ No newline at end of file diff --git a/zsh/.zshenv b/zsh/.zshenv new file mode 100755 index 0000000..ac043fe --- /dev/null +++ b/zsh/.zshenv @@ -0,0 +1,24 @@ +##!/bin/zsh +# +# .zshenv - Zsh environment file, loaded always. +# + +# Set ZDOTDIR if you want to re-home Zsh. +export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} +export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} +export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache} +export ZDOTDIR=${ZDOTDIR:-$XDG_CONFIG_HOME/zsh} + +# Ensure path arrays do not contain duplicates. +typeset -gU path fpath + +# Set the list of directories that zsh searches for commands. +path=( + $HOME/{,s}bin(N) + $HOME/.local/{,s}bin(N) + /opt/{homebrew,local}/{,s}bin(N) + /usr/local/{,s}bin(N) + $path +) + +. "$HOME/.cargo/env" -- cgit v1.2.3