diff --git a/zsh/.zshrc b/zsh/.zshrc index f91d1df..a576194 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below.