Files
comma-scripts/,
2026-03-25 14:05:42 +08:00

17 lines
416 B
Ruby
Executable File

#!/usr/bin/env ruby
puts %q[This is a "comma script", meaning a script starts with a comma.
The benefit is: type "," and press TAB, and you can see all comma scripts!
]
puts ''
puts 'Shell: ' + `echo $SHELL`
puts "PATH: #{ENV['PATH'].split(':').size} paths [Please run ',path' to view path list]"
puts ''
puts 'Ruby version: ' + `/usr/bin/env ruby -v`
puts 'Python version: ' + `/usr/bin/env python --version`