dotfiles/.local/bin/scripts/edbin

4 lines
126 B
Bash
Executable File

#!/bin/sh
file="$(f="$(which $1 2>/dev/null)" && test -f "$f" && echo $f || echo "$HOME/.local/bin/scripts/$1")"
edit "$file"