X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=d8407fe7fcaacd3cf43210bf43ca877cdd0d597c;hp=1ed3a853e83c7953b31dff7979561005f27f3838;hb=3175a81c8c551bb01af2dbc2737718dbb3ab0090;hpb=74601c376caedf65d541ab67e63513448a9bd7ec diff --git a/Makefile b/Makefile index 1ed3a85..d8407fe 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,6 +22,7 @@ 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/ @@ -28,3 +30,7 @@ reinstall: purge: >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'