diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-21 19:30:45 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-21 19:30:45 +1300 |
commit | 0da1f431c0825bb857aac3406d15dea2332f1c1f (patch) | |
tree | 2ef37fc5c915a7ff1a03c4885f9eb550d9383e78 /bash/bashrc.d | |
parent | Don't print bc(1) welcome message (diff) | |
download | dotfiles-0da1f431c0825bb857aac3406d15dea2332f1c1f.tar.gz dotfiles-0da1f431c0825bb857aac3406d15dea2332f1c1f.zip |
vis function makes scripts executable if possible
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/vim.bash | 3 |
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 |