Skip to content

Instantly share code, notes, and snippets.

View bruncanepa's full-sized avatar
💻

Bruno Cánepa bruncanepa

💻
View GitHub Profile
@bruncanepa
bruncanepa / mac-bash-profile.sh
Created January 25, 2024 00:04
My MacOS ~/.bash_profile
# 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