Skip to content

Commit

Permalink
Fixed sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 committed May 12, 2024
1 parent b7a3fda commit 221d9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ check_sourcing() {

# Check if .aliases.sh is sourced in specified rc file, if not append it
if ! grep -qxF "source \"${HOME}/.aliases.sh\"" "$HOME/$1"; then
printf "\n# Sourcing custom aliases" >>"${HOME}/$1"
echo "source \"\${HOME}/.aliases.sh\"" >>"${HOME}/$1"
printf "\n# Sourcing custom aliases\n" >>"${HOME}/$1"
echo "source \"$HOME/.aliases.sh\"" >>"${HOME}/$1"
fi

if [ -r "${HOME}/$1" ]; then
Expand Down

0 comments on commit 221d9bc

Please sign in to comment.