nnn/plugins/chmodx
Arun Prakash Jana e1c91e1aef
Plugin rename
2020-01-02 05:11:00 +05:30

15 lines
242 B
Bash
Executable file

#!/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