From e1c91e1aefc1a20e738fc1b4d5b2a612ff959ffd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 2 Jan 2020 05:11:00 +0530 Subject: Plugin rename --- plugins/chmodx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 plugins/chmodx (limited to 'plugins/chmodx') diff --git a/plugins/chmodx b/plugins/chmodx new file mode 100755 index 0000000..1ad8467 --- /dev/null +++ b/plugins/chmodx @@ -0,0 +1,14 @@ +#!/usr/bin/env sh + +# Description: Toggle executable status of hovered file +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ]; then + if [ -x "$1" ]; then + chmod -x "$1" + else + chmod +x "$1" + fi +fi -- cgit v1.2.3-70-g09d2