Skip to content

Instantly share code, notes, and snippets.

@rhydlewis
Created October 2, 2017 05:03
Show Gist options
  • Save rhydlewis/c743cea7e8f1187d29ef324aa5cc58fd to your computer and use it in GitHub Desktop.
Save rhydlewis/c743cea7e8f1187d29ef324aa5cc58fd to your computer and use it in GitHub Desktop.
alias yd='youtube-dl -x --audio-format m4a'
alias slime='open -a "Sublime Text"'
alias ax='chmod a+x'
alias ff='open -a Finder ./'
alias p='ps aux| grep -v grep| grep -i'
alias h='history'
function cdf
set target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)')
if [ $target ]
cd $target
pwd
else
echo 'No Finder window found' >&2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment