mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-28 10:18:46 -05:00
Added CDPATH to fish.
This commit is contained in:
parent
9ab3874ac2
commit
700a61f4a9
Binary file not shown.
9
fish/.config/fish/conf.d/02_cd-paths.fish
Normal file
9
fish/.config/fish/conf.d/02_cd-paths.fish
Normal 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:)
|
Loading…
Reference in New Issue
Block a user