Added CDPATH to fish.

This commit is contained in:
The-Repo-Club 2023-07-14 20:58:02 +01:00
parent 9ab3874ac2
commit 700a61f4a9
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
2 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,9 @@
set CDPATH "$HOME/.config:$CDPATH"
# Adds `~/.local/bin` to $CDPATH
# set CDPATH so it includes user's private bin if it exists
if test -d "$HOME/.local/bin"
set CDPATH "$HOME/.local/bin:$CDPATH"
end
set CDPATH $(printf %s "$CDPATH" | awk -vRS=: '!a[$0]++' | paste -s -d:)