Skip to content

Commit abffb25

Browse files
make script executable only for the owner
Making files executable for the world opens a potential security risk. It might be unlikely that it can be exploited, but it's a better practice to avoid doing anyway.
1 parent 1c027df commit abffb25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/how_to_create_plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ directory. That's how plugins are run.
2727
Create a plugin run file in plugin directory:
2828

2929
$ touch my_plugin.tmux
30-
$ chmod +x my_plugin.tmux
30+
$ chmod u+x my_plugin.tmux
3131

3232
You can have more than one `*.tmux` file, and all will get executed. However, usually
3333
you'll need just one.
@@ -69,7 +69,7 @@ Now that we have the binding, let's create a script that's invoked with
6969

7070
$ mkdir scripts
7171
$ touch scripts/tmux_list_plugins.sh
72-
$ chmod +x scripts/tmux_list_plugins.sh
72+
$ chmod u+x scripts/tmux_list_plugins.sh
7373

7474
And here's the script content:
7575

0 commit comments

Comments
 (0)