diff options
author | Derek Taylor <derek@distrotube.com> | 2022-03-31 17:45:31 +0000 |
---|---|---|
committer | Derek Taylor <derek@distrotube.com> | 2022-03-31 17:45:31 +0000 |
commit | fcd013ea2e1ff80e01adbcea9d0eaf9c73db94c0 (patch) | |
tree | fdd0a99efe5e7cf7572d2f4edb3015a17dec74f6 | |
parent | Merge branch 'add_manjaro' into 'master' (diff) | |
parent | Add Makefile to simplify installation and removal process. Updated README to ... (diff) |
Merge branch 'master' into 'master'
Add Makefile to simplify installation and removal process. Updated README to show usage
See merge request dwt1/shell-color-scripts!22
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 16 insertions, 4 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7a2cc86 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +clean: + rm -rf /opt/shell-color-scripts + +install: clean + mkdir -p /opt/shell-color-scripts/colorscripts + cp -rf colorscripts/* /opt/shell-color-scripts/colorscripts + cp colorscript.sh /usr/local/bin/colorscript + +uninstall: + rm -rf /opt/shell-color-scripts + rm -f /usr/local/bin/colorscript + @@ -25,10 +25,10 @@ Download the source code from this repository or use a git clone: git clone https://gitlab.com/dwt1/shell-color-scripts.git cd shell-color-scripts - rm -rf /opt/shell-color-scripts || return 1 - sudo mkdir -p /opt/shell-color-scripts/colorscripts || return 1 - sudo cp -rf colorscripts/* /opt/shell-color-scripts/colorscripts - sudo cp colorscript.sh /usr/bin/colorscript + sudo make install + + # Removal + sudo make uninstall # optional for zsh completion sudo cp zsh_completion/_colorscript /usr/share/zsh/site-functions |