mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:26:39 +00:00
Add show_hidden and hide_hidden shell aliases
This commit is contained in:
@@ -86,3 +86,16 @@ function extract () {
|
||||
fi
|
||||
}
|
||||
alias ext=extract
|
||||
|
||||
|
||||
# Show hidden files in Finder.
|
||||
function show_files {
|
||||
defaults write com.apple.finder AppleShowAllFiles YES
|
||||
killall Finder "/System/Library/CoreServices/Finder.app"
|
||||
}
|
||||
|
||||
# Don't show hidden files in Finder.
|
||||
function hide_files {
|
||||
defaults write com.apple.finder AppleShowAllFiles NO
|
||||
killall Finder "/System/Library/CoreServices/Finder.app"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user