This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REFERENCE: | |
# $@ => sets all passed arguments | |
# $1 => sets first passed argument | |
# $2 => sets second passed argument | |
# MacOS | |
function killport(){sudo kill -9 $(lsof -ti:$@);} # kills port passed as first argument | |
alias dontsleep="caffeinate -d -i -s" # stops Mac from going to sleep until the command is stopped | |
# Git |