Skip to content

Commit

Permalink
Fix missing dependency on helper module for helpers added in sorin-io…
Browse files Browse the repository at this point in the history
…nescu#1793 (sorin-ionescu#1811)

PR sorin-ionescu#1793 introduced helper functions for OS detection in some modules.
These helpers require a module dependency on the 'helper' module.
  • Loading branch information
char8 authored and Stefan Rajkovic committed Apr 26, 2021
1 parent 410736e commit 1d9d11d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/haskell/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if (( ! $+commands[ghc] )); then
return 1
fi

# Load dependencies.
pmodload 'helper'

# Prepend Cabal per user directories to PATH.
if is-darwin && [[ -d $HOME/Library/Haskell ]]; then
path=($HOME/Library/Haskell/bin(/N) $path)
Expand Down
3 changes: 3 additions & 0 deletions modules/macports/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Sorin Ionescu <[email protected]>
#

# Load dependencies.
pmodload 'helper'

# Return if requirements are not found.
if ! is-darwin; then
return 1
Expand Down
3 changes: 3 additions & 0 deletions modules/osx/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# Sorin Ionescu <[email protected]>
#

# Load dependencies.
pmodload 'helper'

# Return if requirements are not found.
if ! is-darwin; then
return 1
Expand Down
3 changes: 3 additions & 0 deletions modules/perl/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if (( ! $+commands[perl] )); then
return 1
fi

# Load dependencies.
pmodload 'helper'

#
# Load Perlbrew or plenv
#
Expand Down
3 changes: 3 additions & 0 deletions modules/python/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Patrick Bos <[email protected]>
#

# Load dependencies
pmodload 'helper'

# Load manually installed pyenv into the path
if [[ -s "${PYENV_ROOT:=$HOME/.pyenv}/bin/pyenv" ]]; then
path=("${PYENV_ROOT}/bin" $path)
Expand Down
3 changes: 3 additions & 0 deletions modules/rsync/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if (( ! $+commands[rsync] )); then
return 1
fi

# Load dependencies.
pmodload 'helper'

#
# Aliases
#
Expand Down

0 comments on commit 1d9d11d

Please sign in to comment.