Skip to content

Commit

Permalink
sep fpath and path
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnerWill committed Aug 20, 2024
1 parent e25feeb commit 5409146
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .config/zsh/zsh/user/zsh.d/09_path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ path+=( "${HOME}/.local/lib/bat-extras/bin" )
path+=( "${HOME}/go/bin" )
path+=( "${XDG_DATA_HOME}/gem/ruby/3.0.0/bin" )

### [=]==================================[=]
### [~]............ SOURCE FPATH
### [=]==================================[=]
fpath+=( "${ZSH_USER_DIR}/completion" )
fpath+=( "${ZSH_USER_DIR}/fpath" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-available" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-manual/dotf/bin" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-manual/dotf/completion" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-maunal" )

## Alternativly set PATH like this
# export PATH="${PATH}:${HOME}/.bin"

Expand Down
16 changes: 16 additions & 0 deletions .config/zsh/zsh/user/zsh.d/10_fpath.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#shellcheck disable=2148,2015
### [=]==================================[=]
### [~]............ SOURCE FPATH
### [=]==================================[=]
fpath+=( "${ZSH_USER_DIR}/completion" )
fpath+=( "${ZSH_USER_DIR}/fpath" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-available" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-manual/dotf/bin" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-manual/dotf/completion" )
fpath+=( "${ZSH_USER_DIR}/functions/functions-maunal" )

## Alternativly set PATH like this
# export PATH="${PATH}:${HOME}/.bin"

# automatically remove duplicates from these arrays
#typeset -U path PATH cdpath CDPATH fpath FPATH manpath MANPATH

0 comments on commit 5409146

Please sign in to comment.