Skip to content

Commit

Permalink
fix(dotfile.init): source shellrc dir
Browse files Browse the repository at this point in the history
  • Loading branch information
syaghoubi00 committed Mar 4, 2025
1 parent 7507b18 commit cf33878
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/dotfile_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ wget -qO "$tmp_path" https://github.com/ryanoasis/nerd-fonts/releases/latest/dow
mkdir -p "$font_dir"
unzip -d "$font_dir" "$tmp_path"
rm "$tmp_path"

cat <<'EOF' >>~/.bashrc
if [ -d ~/.shellrc.d ]; then
for rc in ~/.shellrc.d/*.sh; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
unset rc
fi
EOF

0 comments on commit cf33878

Please sign in to comment.