Skip to content

Instantly share code, notes, and snippets.

@petarjs
Created May 25, 2016 20:49
Show Gist options
  • Save petarjs/24416a61e291a55e05961b7889ce8b49 to your computer and use it in GitHub Desktop.
Save petarjs/24416a61e291a55e05961b7889ce8b49 to your computer and use it in GitHub Desktop.
function sudo!!
eval sudo $history[1]
end
function ll
ls -FGlAhp
end
function c
clear
end
function f
open -a Finder ./
end
function path
echo -e $PATH
end
function mkcd
mkdir -p $argv[1]; and cd $argv[1];
end
function ql
qlmanage -p $argv >/dev/null;
end
alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE'
alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE'
alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment