From 77c3782785e5cb9d043ee03aa5a6545c7b95ca6c Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Wed, 6 May 2026 22:37:09 -0400 Subject: [PATCH] Guard gs shell alias --- zsh/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.