You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
168 B

#!/bin/sh
[ -z "$1" ] && return 1 || f=$(command -v "$1")
if [ -z "$f" ]; then
f="$HOME/bin/$1"
$EDITOR "$f"
[ -f "$f" ] && chmod +x "$f"
else
exec $EDITOR "$f"
fi