add aliases so stop and start parallels

This commit is contained in:
doman 2023-11-15 19:48:29 +01:00
parent 0847a00714
commit dbfda9162b
2 changed files with 9 additions and 11 deletions

View file

@ -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'"

View file

@ -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'"