Method: OneCmd::Command::Macosx::HidenFiles#run

Defined in:
lib/onecmd/command/macosx/hiden_files.rb

#runObject



20
21
22
23
24
25
26
# File 'lib/onecmd/command/macosx/hiden_files.rb', line 20

def run
  if @hide
    system('defaults write com.apple.finder AppleShowAllFiles No && killall Finder')
  else
    system('defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder')
  end
end