1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-03-06 23:09:21 +00:00
nnn/plugins/exetoggle
2019-11-16 10:36:39 +05:30

14 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