3 ms·
Not really shorter as I have to Ctrl+C to get back to shell afterwards. Anyways my zsh has noclobber set so your command fails with error: zsh: file exists: ~/
by bigbugbag 10y ago
Not really shorter as I have to Ctrl+C to get back to shell afterwards.
Anyways my zsh has noclobber set so your command fails with error:
zsh: file exists: ~/.vimrc
- stplsd 10y ago> ~/.vimrc works on bash, but it hangs on zsh because it treats it like cat > ~/.vimrc (> without any command in front of it is not well defined in POSIX) So portable way to do this is like this: :> ~/.vimrc