X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=blobdiff_plain;f=Makefile;h=526b31427282bbc2751c2b5c2048e23bd802653b;hp=1ed3a853e83c7953b31dff7979561005f27f3838;hb=bc337195684eaeae2404a0aa5d2a533e89ea14da;hpb=74601c376caedf65d541ab67e63513448a9bd7ec diff --git a/Makefile b/Makefile index 1ed3a85..526b314 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ 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/ @@ -21,10 +22,15 @@ reinstall: >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 $USER/.local/share/charsel/ ->rm -rf $USER/.cache/charsel/ +>rm -rf ${HOME}/.local/share/charsel/ +>rm -rf ${HOME}/.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'