Help with bash scripting

I added at the bottom of my .bashrc

function cheat() {
  /usr/bin/curl https://cheat.sh/$1
}

started new terminal, cheat lsof, it gives examples how to use lsof

2 Likes