commit c59827a178876f391c052444ec589508c3bb6667 parent 71b5cb44f385a44bc9e81399343ca6b831805df4 Author: gearsix <gearsix@tuta.io> Date: Wed, 18 Jan 2023 14:20:07 +0000 made colors/install.sh executable; minor fix Diffstat:
M | colors/install.sh | | | 21 | ++++++++++++++------- |
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/colors/install.sh b/colors/install.sh @@ -4,14 +4,21 @@ for arg in "$@"; do file=$arg dir="" - if [ "$file" = "*.vim" ]; then dir=~/.config/nvim/colors/ - elif [ "$file" = "*.micro" ]; then dir=~/.config/micro/colorschemes/ - elif [ "$file" = "*.Xresources" ]; then dir=~/ - else echo "usage: ./install FILE"; fi - - if [ "$dir" = "" ]; then exit; fi + if [ "$file" = "acme.vim" ]; then + dir=~/.config/nvim/colors + elif [ "$file" = "acme.micro" ] || [ "$file" = "paper.micro" ]; then + dir=~/.config/micro/colorschemes + elif [ "$file" = "acme.Xresources" ]; then + dir=~/.Xresources + elif [ "$file" = "" ]; then + echo "usage: ./install FILE" + exit + else + echo "unrecognised file: $file" + continue + fi mkdir -pv $dir - cp -vi "$file" $dir + ln -vi "$file" $dir done