Skip to content

Commit

Permalink
fix: check on file that gets sourced
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <mbuchleitner@infralovers.com>
  • Loading branch information
mabunixda committed Jun 22, 2023
1 parent 0160eb7 commit a5acabb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .extras
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{bash_prompt,aliases,functions,path}; do
for file in ~/.{prompt,aliases,functions,path}; do
if [[ -r "$file" ]] && [[ -f "$file" ]]; then
# shellcheck source=/dev/null
source "$file"
Expand Down
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ -f "${ZSH}/oh-my-zsh.sh" ]; then
source ${ZSH}/oh-my-zsh.sh
fi

if [[ -f "${HOME}/.bash_profile" ]]; then
if [[ -f "${HOME}/.extras" ]]; then
source "${HOME}/.extras"
fi

Expand Down

0 comments on commit a5acabb

Please sign in to comment.