shirt
shirt copied to clipboard
cd ~
Using cd ~
shirt crashes with No such file or directory - ~ (Errno::ENOENT)
Good one. I'll make sure that's fixed in due time :)
This will be covered in a future article on 'inline evaluation'. It's possible to use ~
for any command, not just cd
, so it needs to replaced with ENV['HOME']
for any command (ls ~/projects
). There are things of a similar nature like !!
, as well as code in backticks that needs to be replaced inline.