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.

edit-script 168B

123456789
  1. #!/bin/sh
  2. [ -z "$1" ] && return 1 || f=$(command -v "$1")
  3. if [ -z "$f" ]; then
  4. f="$HOME/bin/$1"
  5. $EDITOR "$f"
  6. [ -f "$f" ] && chmod +x "$f"
  7. else
  8. exec $EDITOR "$f"
  9. fi