Guard gs shell alias
This commit is contained in:
10
zsh/.zshrc
10
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.
|
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user