This assumes your shell of choice is Bash.
Paste the following to a Terminal prompt:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/exalted/dotfiles/main/install)"
Whenever you feel like, run a simple command to keep your environment up-to-date:
dotfiles
- Create a script file anywhere (also in a nested directory) inside
software/
(e.g.,software/example.rb
). (Not necessarily in Ruby, but encouraged. Shell/Python/JavaScript are also welcome.) - Make sure it's executable (
chmod +x software/example.rb
). - Make sure it has correct shebang (e.g.,
#!/usr/bin/env ruby
for Ruby,#!/usr/bin/env bash
for Bash, etc.). - Make sure they're self executable, meaning they work even if you run them directly like
software/example.rb
rather than throughbin/dotfiles
. - Try to write your script as less order dependent as possible related to order software.