Fixed faulty sed command in removal function
This commit is contained in:
parent
2d8c254621
commit
17d2815039
1 changed files with 2 additions and 2 deletions
|
|
@ -308,10 +308,10 @@ remove_helium() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$HOME/.zshrc" ] ; then
|
if [ -f "$HOME/.zshrc" ] ; then
|
||||||
sed -i "s|$ALIAS|d|" $HOME/.zshrc
|
sed -i "/$ALIAS/d" $HOME/.zshrc
|
||||||
|
|
||||||
elif [ -f "$HOME/.bashrc" ] ; then
|
elif [ -f "$HOME/.bashrc" ] ; then
|
||||||
sed -i "s|$ALIAS|d|" $HOME/.bashrc
|
sed -i "/$ALIAS/d" $HOME/.bashrc
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue