Separate lib, new problems and script for web
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# usaco open <name>
|
||||
[[ $# -ge 1 ]] || usage
|
||||
dir="$(find_problem "$1")"
|
||||
[[ -f "$dir/.url" ]] || { echo "Error: no URL saved for '$1' (use --url with 'new', or write $dir/.url)" >&2; exit 1; }
|
||||
xdg-open "$(cat "$dir/.url")" >/dev/null 2>&1 &
|
||||
echo "Opening $(cat "$dir/.url")"
|
||||
Reference in New Issue
Block a user