From db9027989d473ec4dfc4e226e98f5f6c21be0b1d Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 30 Dec 2021 12:09:20 -0800 Subject: [PATCH] plugin/osx: remove `dock-switch()` ...it hasn't worked in *years* --- plugins/available/osx.plugin.bash | 32 ------------------------------- 1 file changed, 32 deletions(-) diff --git a/plugins/available/osx.plugin.bash b/plugins/available/osx.plugin.bash index 555de8a3..532717a7 100644 --- a/plugins/available/osx.plugin.bash +++ b/plugins/available/osx.plugin.bash @@ -31,38 +31,6 @@ function winname { printf '%b' "\e]2;$1\a" } -# this one switches your os x dock between 2d and 3d -# thanks to savier.zwetschge.org -function dock-switch() { - about 'switch dock between 2d and 3d' - param '1: "2d" or "3d"' - example '$ dock-switch 2d' - group 'osx' - - case $OSTYPE in - *'darwin'*) - case $1 in - 3d) - defaults write com.apple.dock no-glass -boolean NO - killall Dock - ;; - 2d) - defaults write com.apple.dock no-glass -boolean YES - killall Dock - ;; - *) - echo "usage:" - echo "dock-switch 2d" - echo "dock-switch 3d." - ;; - esac - ;; - *) - echo "Sorry, this only works on Mac OS X" - ;; - esac -} - function pman() { about 'view man documentation in Preview' param '1: man page to view'