citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

sedit (160B)


      1 #!/usr/bin/env bash
      2 [[ -z $1 ]] && exit 1
      3 path="$(spath $1)"
      4 if [[ ! -e "$path" ]]; then
      5   printf "$1 not found\n" 1>&2
      6   exit 2
      7 fi
      8 shift
      9 $EDITOR "$@" "$path"
     10