Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Jul 4, 2024
1 parent 0f77a60 commit 6c7d1b0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 44 deletions.
2 changes: 1 addition & 1 deletion home/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ brew "gh"
brew "fd"
brew "bats-core"
brew "chezmoi"
# brew "visidata"
# brew "visidata" - To evaluate

# Cross-shell prompt

Expand Down
32 changes: 15 additions & 17 deletions tests/files/common.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@
[ -f "${file}" ]
done

directories_exists=(
"${HOME}/.config/fzf"
"${HOME}/.spacemacs.d"
"${HOME}/.pyenv"
)
for directory in "${directories_exists[@]}"; do
echo "Checking ${directory}"
[ -d "${directory}" ]
done
# directories_exists=(
# "${HOME}/.config/fzf"
# )
# for directory in "${directories_exists[@]}"; do
# echo "Checking ${directory}"
# [ -d "${directory}" ]
# done

symbolic_links_exists=(
"${HOME}/.zshrc"
"${HOME}/.zprofile"
)
for link in "${symbolic_links_exists[@]}"; do
echo "Checking ${link}"
[ -L "${link}" ]
done
# symbolic_links_exists=(
# "${HOME}/.zshrc"
# "${HOME}/.zprofile"
# )
# for link in "${symbolic_links_exists[@]}"; do
# echo "Checking ${link}"
# [ -L "${link}" ]
# done
}
51 changes: 25 additions & 26 deletions tests/files/macos.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,37 @@

@test "[macos] dotfiles" {
files_exists=(
"${HOME}/.zsh/client/zshrc"
"${HOME}/.zsh/client/zprofile"
"${HOME}/.bash/client/bashrc"
"${HOME}/.zsh/zshrc"
"${HOME}/.zsh/zprofile"
"${HOME}/.bash/bashrc"
)
for file in "${files_exists[@]}"; do
echo "Checking ${file}"
[ -f "${file}" ]
done

directories_exists=(
"${HOME}/.local/bin/client"
"${HOME}/.zprezto"
)
for directory in "${directories_exists[@]}"; do
echo "Checking ${directory}"
[ -d "${directory}" ]
done
# directories_exists=(
# "${HOME}/.local/bin/client"
# )
# for directory in "${directories_exists[@]}"; do
# echo "Checking ${directory}"
# [ -d "${directory}" ]
# done

symbolic_links_exists=(
"${HOME}/Library/Application Support/iTerm2/DynamicProfiles/hotkey_window.json"
)
for link in "${symbolic_links_exists[@]}"; do
echo "Checking ${link}"
[ -L "${link}" ]
done
# symbolic_links_exists=(
# "${HOME}/Library/Application Support/iTerm2/DynamicProfiles/hotkey_window.json"
# )
# for link in "${symbolic_links_exists[@]}"; do
# echo "Checking ${link}"
# [ -L "${link}" ]
# done

files_not_exists=(
"${HOME}/.zsh/server/zshrc"
"${HOME}/.zsh/server/zprofile"
)
for file in "${files_not_exists[@]}"; do
echo "Checking ${file}"
[ ! -f "${file}" ]
done
# files_not_exists=(
# "${HOME}/.zsh/zshrc"
# "${HOME}/.zsh/zprofile"
# )
# for file in "${files_not_exists[@]}"; do
# echo "Checking ${file}"
# [ ! -f "${file}" ]
# done
}

0 comments on commit 6c7d1b0

Please sign in to comment.