22
私はpryと呼ばれるルビーの宝石の上にscreen castを続けています。 8時10分に.treeコマンドが使用されます。これはUnixコマンドです。osx bashのツリーコマンド
それは私のシステム上で動作して表示されません。
[24] pry(main)> .tree
\Error: there was a problem executing system command: tree
と私はシェルコマンドリファレンスを詮索する、hereに問題をトレースしています
Pry::CommandSet.new do
command(/\.(.*)/, "All text following a '.' is forwarded to the shell.", :listing => ".<shell command>") do |cmd|
if cmd =~ /^cd\s+(.+)/i
dest = $1
begin
Dir.chdir File.expand_path(dest)
rescue Errno::ENOENT
output.puts "No such directory: #{dest}"
end
else
if !system(cmd)
output.puts "Error: there was a problem executing system command: #{cmd}"
end
end
end
の文脈からbash私は運がないコマンドツリーを使ってみました:
projects/sms(apps2)$ tree
-bash: tree: command not found
~/projects/sms(apps2)$ .tree
-bash: .tree: command not found
このコマンドをどのように入手できますか? macports使用
brew install tree
:homebrewを使用