aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/vim.bash')
-rw-r--r--bash/bashrc.d/vim.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash
index fde18def..03193c6e 100644
--- a/bash/bashrc.d/vim.bash
+++ b/bash/bashrc.d/vim.bash
@@ -39,6 +39,9 @@ vis() {
# Run Vim with all the options and full path file arguments
command vim "${opts[@]}" -- "${files[@]}"
+
+ # Attempt to make the new files executable by us
+ chmod -f -- u+x "${files[@]}"
}
# Complete the vis function with command names