aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exetoggle
blob: 1ad8467fbf8093908c485cb84e54cae4a3675c8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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