mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
ofd: even better version of the fix
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
21680a70b0
commit
cba5668f6f
1 changed files with 7 additions and 1 deletions
|
|
@ -4,7 +4,13 @@
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
0="${${(M)0:#/*}:-$PWD/$0}"
|
||||||
|
|
||||||
# Open the current directory in a Finder window
|
# 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
|
# Show/hide hidden files in the Finder
|
||||||
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue