From 4dce77ed89c1a2588fb97e8e43629c6f2ab107b6 Mon Sep 17 00:00:00 2001 From: eeleater Date: Wed, 14 Aug 2024 00:45:29 +0200 Subject: [PATCH] updated antidote from sheldon --- dot_config/zsh/files/paths.zsh | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 dot_config/zsh/files/paths.zsh diff --git a/dot_config/zsh/files/paths.zsh b/dot_config/zsh/files/paths.zsh new file mode 100644 index 0000000..97d767b --- /dev/null +++ b/dot_config/zsh/files/paths.zsh @@ -0,0 +1,75 @@ +# +# Paths +# + +# Export existing paths. +typeset -gxU path PATH +typeset -gxU fpath FPATH +typeset -gxU cdpath CDPATH +typeset -gxU mailpath MAILPATH +typeset -gxU manpath MANPATH +# Create and export new paths. +typeset -gxU infopath INFOPATH +typeset -gxU node_path NODE_PATH +# Tie the new paths. +typeset -gxTU INFOPATH infopath +typeset -gxTU NODE_PATH nodepath + +# Set the list of directories that zsh searches for commands. +path=( + $HOME/bin + $HOME/.rvm/bin + /Applications/Postgres.app/Contents/MacOS/bin + /usr/local/{sbin,bin} + /usr/local/heroku/{sbin,bin} + /usr/local/opt/rbenv/shims + /usr/local/share/npm/bin + /opt/{sbin,bin} + /opt/local/{sbin,bin} + /usr/{sbin,bin} + /usr/X11R6/bin + /{sbin,bin} + $path +) +path=($^path(N-/)) + +# Set the list of directories that cd searches for directories. +setopt auto_cd +cdpath=( + . + $HOME + $HOME/Documents/Development + /Volumes/Daten/Development/gubo + /Volumes/Daten/Development/mojo + /Volumes/7\ Web/ +) +cdpath=($^cdpath(N-/)) + +# Set the list of directories that info searches for manuals. +infopath=( + /usr/local/info + /usr/local/share/info + /usr/share/info +) +infopath=($^infopath(N-/)) + +# Set the list of directories that man searches for manuals. +manpath=( + /usr/local/man + /usr/local/share/man + /usr/share/man +) +manpath=($^manpath(N-/)) + +# Set the list of directories that zsh searches for mail. +mailpath=( + $mailpath +) +mailpath=($^mailpath(N-/)) + +# Set the list of directories that node.js searches for modules. +nodepath=( + /usr/local/share/npm/lib/node_modules + /usr/local/lib/node_modules + ./node_modules +)