From e82f6d02cdbfda3afbc66997adf15c8b4a2a5317 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 16 Nov 2019 10:36:39 +0530 Subject: Plugin extoggle to toggle executable status --- plugins/exetoggle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 plugins/exetoggle (limited to 'plugins/exetoggle') diff --git a/plugins/exetoggle b/plugins/exetoggle new file mode 100755 index 0000000..1ad8467 --- /dev/null +++ b/plugins/exetoggle @@ -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