X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=blobdiff_plain;f=Makefile;h=d8407fe7fcaacd3cf43210bf43ca877cdd0d597c;hp=9ef379a7c7fa6f11879e3f765ab0ea07f75cb102;hb=3175a81c8c551bb01af2dbc2737718dbb3ab0090;hpb=28543d91684581b0931dbe6173635d970e2276d0 diff --git a/Makefile b/Makefile index 9ef379a..d8407fe 100644 --- a/Makefile +++ b/Makefile @@ -5,26 +5,32 @@ install: >chmod +x ./charsel >mkdir -p /usr/share/charsel/charfiles/ >cp charfiles/* /usr/share/charsel/charfiles/ +>cp shell-completions /usr/share/charsel/ >mkdir /usr/share/doc/charsel >cp README.md /usr/share/doc/charsel/ >cp ./charsel /usr/bin/ uninstall: ->rm -rf /usr/share/charsel/charfiles/ +>rm -rf /usr/share/charsel/ >rm -rf /usr/share/doc/charsel/ >rm -rf /usr/bin/charsel reinstall: ->rm -rf /usr/share/charsel/charfiles/ +>rm -rf /usr/share/charsel/ >rm -rf /usr/share/doc/charsel/ >rm -rf /usr/bin/charsel >chmod +x ./charsel >mkdir -p /usr/share/charsel/charfiles/ >cp charfiles/* /usr/share/charsel/charfiles/ +>cp shell-completions /usr/share/charsel/ >mkdir /usr/share/doc/charsel >cp README.md /usr/share/doc/charsel/ >cp ./charsel /usr/bin/ purge: ->rm -rf ~/.local/share/charsel/ ->rm -rf ~/.cache/charsel/ +>rm -rf $USER/.local/share/charsel/ +>rm -rf $USER/.cache/charsel/ + +install-completions-bash: +>echo "source /usr/share/charsel/shell-completions" >> '${HOME}/.bashrc' +>echo "autoload bashcompinit ; bashcompinit ; source /usr/share/charsel/shell-completions" >> '${ZDOTDIR}/.zshrc'