]> git.phdru.name Git - dotfiles.git/commitdiff
.vimrc: Run `chmod` silently
authorOleg Broytman <phd@phdru.name>
Fri, 20 Apr 2018 13:31:03 +0000 (16:31 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 20 Apr 2018 13:31:03 +0000 (16:31 +0300)
.vimrc

diff --git a/.vimrc b/.vimrc
index e315350eb6cc3e85d321f99a6aedda7ed793948a..0ff6ea1ec534ac8bde907caba3e627d601bb0d86 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -593,9 +593,9 @@ if executable('chmod')
       autocmd FileChangedShell <buffer> call _BufChangedCB()
       let fx = executable(expand("%:p"))
       if a:x && !fx
-         !chmod a+x %
+         silent !chmod a+x %
       elseif !a:x && fx
-         !chmod a-x %
+         silent !chmod a-x %
       endif
       if v:shell_error
          echoerr 'Error running chmod: ' . v:shell_error