|
|
@ -192,7 +192,7 @@ com() {
|
|
|
|
add_after() {
|
|
|
|
add_after() {
|
|
|
|
# Example:
|
|
|
|
# Example:
|
|
|
|
# add_after "Color" "ILoveCandy" "$HOME/test/pacman.conf"
|
|
|
|
# add_after "Color" "ILoveCandy" "$HOME/test/pacman.conf"
|
|
|
|
sed -i '/$2/d'
|
|
|
|
sed -i '/'"$2"'/d'
|
|
|
|
sed -i '/'"$1"'/a '"$2"'' $3
|
|
|
|
sed -i '/'"$1"'/a '"$2"'' $3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|