Initial commit
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
commit
1071567f8d
5 changed files with 87 additions and 0 deletions
27
Makefile
Normal file
27
Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
SCRIPT_FILE = terminal-url-open
|
||||
DESKTOP_FILE = terminal-url-scheme-handler.desktop
|
||||
|
||||
.PHONY: default
|
||||
default: help
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo " - help - this text"
|
||||
@echo " - user-install - install the 'terminal://' handler for only $(USER)"
|
||||
@echo " - lint - run shellcheck"
|
||||
@echo " - get-default - see the xdg-settings default handler for 'terminal://' scheme"
|
||||
|
||||
user-install:
|
||||
mkdir -p ~/.local/bin && \
|
||||
ln -sf $(shell realpath $(SCRIPT_FILE)) ~/.local/bin && \
|
||||
mkdir -p ~/.local/share/applications && \
|
||||
ln -sf $(shell realpath $(DESKTOP_FILE)) ~/.local/share/applications/ && \
|
||||
update-desktop-database ~/.local/share/applications
|
||||
|
||||
lint:
|
||||
shellcheck $(SCRIPT_FILE)
|
||||
|
||||
get-default:
|
||||
xdg-settings get default-url-scheme-handler terminal
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue