mirror of
https://github.com/jarun/nnn.git
synced 2024-11-05 02:43:12 +00:00
15 lines
242 B
Plaintext
15 lines
242 B
Plaintext
|
#!/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
|