diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/sdep-edit | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/sdep-edit b/scripts/sdep-edit new file mode 100755 index 0000000..5e8c491 --- /dev/null +++ b/scripts/sdep-edit | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Open specified file in sdep folder in editor. | ||
| 4 | |||
| 5 | # Usage: sdep-edit [file] | ||
| 6 | # No options = once | ||
| 7 | |||
| 8 | file="SDEPFOLDER/${1:-once}" | ||
| 9 | editor=${VISUAL:-vi} | ||
| 10 | |||
| 11 | $editor "$file" | ||
