This commit is contained in:
libm committed 2026-02-26 11:12:27 +08:00
1 parent ab2f0ec6fb
commit 2fe4407830
1 file changed
+1 -1
+1 -1
View File
@@ -372,7 +372,7 @@ EOF
}
_revoke_rc() {
_detect_rc
sed -i.bak "/$start_flag/,/$end_flag/d" "$SHELL_RC_BASH" "$SHELL_RC_ZSH" 2>/dev/null
sed -i --follow-symlinks "/$start_flag/,/$end_flag/d" "$SHELL_RC_BASH" "$SHELL_RC_ZSH" 2>/dev/null
[ -n "$SHELL_RC_FISH" ] && rm -f "$SHELL_RC_FISH" 2>/dev/null
}