From dbfda9162bcf997a5f79f927626f3ee3d6ac400e Mon Sep 17 00:00:00 2001 From: doman Date: Wed, 15 Nov 2023 19:48:29 +0100 Subject: [PATCH] add aliases so stop and start parallels --- .config/aliasrc/apple | 16 +++++++++------- .config/aliasrc/programs | 4 ---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.config/aliasrc/apple b/.config/aliasrc/apple index 5145dbf..450cfc7 100644 --- a/.config/aliasrc/apple +++ b/.config/aliasrc/apple @@ -1,7 +1,9 @@ -setupmac() { - defaults write com.apple.dock expose-animation-duration -float 0.1 - defaults write -g InitialKeyRepeat -int 12 - defaults write -g KeyRepeat -int 1 - defaults write com.apple.Dock autohide-delay -float 0; killall Dock - defaults write -g com.apple.mouse.scaling -integer -1 -} +# parallels +alias stoppar='pkill -SIGHUP -f /Applications/Parallels\ Desktop.app' +alias startpar='open -a Parallels\ Desktop' +alias startparra='hc && open -a Parallels\ Desktop' +alias stopparra='hc && pkill -SIGHUP -f /Applications/Parallels\ Desktop.app' + +# docker +alias startdocker='open -a Docker' +alias stopdocker="pkill -SIGHUP -f /Applications/Docker.app 'docker serve'" diff --git a/.config/aliasrc/programs b/.config/aliasrc/programs index 3de8318..79612b9 100755 --- a/.config/aliasrc/programs +++ b/.config/aliasrc/programs @@ -55,7 +55,3 @@ hlst() { history | tail --lines=1 | cut -d " " -f 4-; } cpy() { python -c "import sys, pyperclip; pyperclip.copy(sys.stdin.read().strip())"; } lstc() { lst | cpy; } hlstc() { hlst | cpy; } - -# docker -alias startdocker='open -a Docker' -alias stopdocker="pkill -SIGHUP -f /Applications/Docker.app 'docker serve'"