Repository URL to install this package:
Version:
0.3.9-1 ▾
|
Tab indent code.
Keep code within 80 columns.
Global variables must be UPPERCASE. Temporary variables should be lowercase.
Use the function
keyword for functions.
Quote all String variables.
Use (( ))
for arithmetic expressions and [[ ]]
otherwise.
Use $(...)
instead of back-ticks.
Use ${path##*/}
instead of $(basename $path)
.
Use ${path%/*}
instead of $(dirname $path)
.
Prefer single-line expressions where appropriate:
[[ -n "$foo" ]] && other command
if [[ "$foo" == "bar" ]]; then command
elif [[ "$foo" == "baz" ]]; then other_command
fi
case "$foo" in
bar) command ;;
baz) other_command ;;
esac
share/chruby/
.chruby 1.9
)..files
: we should strive to prevent dotfile proliferation, and instead
support common dotfiles which other Ruby Switchers could support.