Thursday, September 27, 2018

Need sudo in order to save

If you are editing a file without sudo, and you need sudo in order to save, simply use this vim command
:w !sudo tee %

No comments:

Post a Comment

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...