Guard gs shell alias

This commit is contained in:
2026-05-06 22:37:09 -04:00
parent c246fbc78d
commit 77c3782785

View File

@@ -1,3 +1,13 @@
gs() {
if [[ $# -eq 0 ]]; then
echo "Refusing to open Ghostscript interactive prompt."
echo "Use /usr/bin/gs explicitly if you really want Ghostscript."
return 1
fi
command gs "$@"
}
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n] # Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below. # confirmations, etc.) must go above this block; everything else may go below.