ofd: even better version of the fix

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
Bartek Pacia 2024-04-08 21:44:46 +01:00
commit cba5668f6f
No known key found for this signature in database

View file

@ -4,7 +4,13 @@
0="${${(M)0:#/*}:-$PWD/$0}"
# Open the current directory in a Finder window
alias ofd='open_command $PWD'
function ofd {
if (( ! $# )); then
open_command $PWD
else
open_command $@
fi
}
# Show/hide hidden files in the Finder
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"