Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 11, 2023
1 parent 2353046 commit 6f384ca
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
25 changes: 22 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{v,js,css}]
indent_style = tab

[*.{bat,cmd}]
# BAT/CMD ~ DOS/Win requires BAT/CMD files to have CRLF EOLNs
end_of_line = crlf

[*.{yml,yaml}]
indent_style = space
indent_size = 2
charset = utf-8

[*.{vim,md}]
[*.md]
trim_trailing_whitespace = false
# lines that are too long will trigger an error in cmd/tools/vcheck-md.v
# run v check-md [folder/file] to test markdown files
# the longest normal line is specified with this constant:
# `too_long_line_length_other = 100`
max_line_length = 100

[*.{txt,out}]
insert_final_newline = false

[{Makefile,GNUmakefile}]
indent_style = tab
15 changes: 13 additions & 2 deletions dots
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,19 @@ time_str=$(date +'%m-%d-%y_%H:%M:%S')
dotfiles_dir=${dotfiles_dir:-"${HOME}/.local/share/dotfiles"}

if ! chezmoi="$(command -v chezmoi)"; then
echo "chezmoi is not installed, please install it first."
exit 1
bin_dir="${HOME}/.local/bin"
chezmoi="${bin_dir}/chezmoi"
echo "Installing chezmoi to '${chezmoi}'" >&2
if command -v curl >/dev/null; then
chezmoi_install_script="$(curl -fsSL https://chezmoi.io/get)"
elif command -v wget >/dev/null; then
chezmoi_install_script="$(wget -qO- https://chezmoi.io/get)"
else
echo "To install chezmoi, you must have curl or wget installed." >&2
exit 1
fi
sh -c "${chezmoi_install_script}" -- -b "${bin_dir}"
unset chezmoi_install_script bin_dir
fi

if [ ! -d "${dotfiles_dir}" ]; then
Expand Down

0 comments on commit 6f384ca

Please sign in to comment.