I'd remove cd ~ as not necessary