the hash table declarations don't need to be in the config.
This commit is contained in:
parent
545447c9b0
commit
97b1be6732
4
sx-open
4
sx-open
|
@ -45,6 +45,10 @@ handle_fs_target() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
declare -A uri_handlers
|
||||||
|
declare -A mime_handlers
|
||||||
|
declare -A filename_handlers
|
||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
[[ "$target" ]] || { usage; exit; }
|
[[ "$target" ]] || { usage; exit; }
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Configuration file for sx-open
|
# Configuration file for sx-open
|
||||||
# Note that as sx-open checks the regexes in order, they should be placed in order from specific to less so.
|
# Note that as sx-open checks the regexes in order, they should be placed in order from specific to less so.
|
||||||
|
|
||||||
declare -A uri_handlers
|
|
||||||
declare -A mime_handlers
|
|
||||||
declare -A filename_handlers
|
|
||||||
|
|
||||||
uri_handlers=(
|
uri_handlers=(
|
||||||
["steam"]='^steam://.+'
|
["steam"]='^steam://.+'
|
||||||
["browser"]='.+'
|
["browser"]='.+'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user