Fix line editing and git on kosh