Skip to content

Commit

Permalink
fix: dont use hardcoded paths (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh672003 authored Nov 12, 2022
1 parent 1d4431f commit 5c36816
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zap.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ pause() {
echo -n "Plugin Name or (a) to Update All: "
read plugin
if [[ $plugin == "a" ]]; then
sed -i '/^plug/s/^/#/g' ~/.zshrc
sed -i '/^plug/s/^/#/g' $ZDOTDIR/.zshrc
else
sed -i "/\/$plugin/s/^/#/g" ~/.zshrc
sed -i "/\/$plugin/s/^/#/g" $ZDOTDIR/.zshrc
fi
}

Expand All @@ -96,9 +96,9 @@ unpause() {
echo -n "Plugin Name or (a) to Update All: "
read plugin
if [[ $plugin == "a" ]]; then
sed -i '/^#plug/s/^#//g' ~/.zshrc
sed -i '/^#plug/s/^#//g' $ZDOTDIR/.zshrc
else
sed -i "/\/$plugin/s/^#//g" ~/.zshrc
sed -i "/\/$plugin/s/^#//g" $ZDOTDIR/.zshrc
fi
}

Expand Down

0 comments on commit 5c36816

Please sign in to comment.