mirror of
https://github.com/owenlejeune/zsh-plugins.git
synced 2025-11-17 13:00:53 -05:00
40 lines
828 B
Bash
Executable File
40 lines
828 B
Bash
Executable File
alias allowanywhere="sudo spctl --master-disable"
|
|
alias resetaudio="sudo killall coreaudiod"
|
|
|
|
function softsearch() {
|
|
brew search $@
|
|
mas search $@
|
|
}
|
|
|
|
function screensaver() {
|
|
open -a ScreenSaverEngine.app
|
|
}
|
|
|
|
function finder() {
|
|
DIR="."
|
|
if [[ $# -gt 0 ]];
|
|
then
|
|
DIR="$1"
|
|
fi
|
|
open $DIR
|
|
}
|
|
|
|
function quick-look() {
|
|
(( $# > 0 )) && qlmanage -p $* &>/dev/null &
|
|
}
|
|
|
|
# Show/hide hidden filed in the Finder
|
|
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
|
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
|
|
|
|
# Remove .DS_Store files recursively in a directory, default .
|
|
function rmdsstore() {
|
|
find "${@:-.}" -type f -name .DS_Store -delete
|
|
}
|
|
|
|
function softup() {
|
|
brewup
|
|
echo "***MAS Upgrade***"
|
|
mas upgrade
|
|
}
|