Skip to content

Commit

Permalink
Merge pull request #28 from gusbemacbe/beta
Browse files Browse the repository at this point in the history
Upgrade beta to main
  • Loading branch information
gusbemacbe authored Apr 4, 2021
2 parents fb48a61 + c6ca15f commit 419d45a
Show file tree
Hide file tree
Showing 783 changed files with 1,124 additions and 34,043 deletions.
26 changes: 21 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

PREFIX ?= /usr
PROGNAME := suru-plus-folders
VERSION ?=
ZSHCOMPDIR ?= $(PREFIX)/share/zsh/vendor-completions

all:

Expand All @@ -12,18 +14,32 @@ install:
mkdir -p $(DESTDIR)$(PREFIX)/share/bash-completion/completions
install -m 644 completion/$(PROGNAME) \
$(DESTDIR)$(PREFIX)/share/bash-completion/completions
mkdir -p $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
mkdir -p $(DESTDIR)$(ZSHCOMPDIR)
install -m 644 completion/_$(PROGNAME) \
$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
$(DESTDIR)$(ZSHCOMPDIR)

uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGNAME)
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/$(PROGNAME)
rm -f $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_$(PROGNAME)
rm -f $(DESTDIR)$(ZSHCOMPDIR)/_$(PROGNAME)

.PHONY: all install uninstall
_get_version:
$(if $(VERSION),,$(error VERSION is not defined. Pass via "make bump VERSION=0.1.2"))

bump: _get_version
sed -i '/VERSION=/s/[0-9.]\+/$(VERSION)/' $(PROGNAME)
dch -v $(VERSION)-1 -- ''
git commit -am "Bump to v$(VERSION)"
git tag -f v$(VERSION)

release:
git push origin
git push origin --tags


.PHONY: all install uninstall _get_version bump release

# .BEGIN is ignored by GNU make so we can use it as a guard
.BEGIN:
@head -3 Makefile
@false
@false
38 changes: 14 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
<h1>Suru++ Folders</h1>

Choose your language to read the documentation and tutorial:

<img src="flags/de_DE.svg?sanitize=true" alt="Deutsch" height="16px" /> [Deutsch](languages/de.md) <br/>
<img src="flags/en_GB.svg?sanitize=true" alt="English" height="16px" /> [English](languages/en.md) <br/>
<img src="flags/es_ES.svg?sanitize=true" alt="Español" height="16px" /> [Español](languages/es.md) <br/>
<img src="flags/fr_FR.svg?sanitize=true" alt="Français" height="16px" /> [Français](languages/fr.md) <br/>
<img src="flags/it.svg?sanitize=true" alt="Italiano" height="16px" /> [Italiano](languages/it.md) <br/>
<img src="flags/nl_NL.svg?sanitize=true" alt="Nederlands" height="16px" /> [Nederlands](languages/nl.md) <br/>
<img src="flags/pt_BR.svg?sanitize=true" alt="Português brasileiro" height="16px" /> [Português brasileiro](languages/pt_BR.md) <br/>
<img src="flags/pt_PT.svg?sanitize=true" alt="Português europeu" height="16px" /> [Português europeu](languages/pt_PT.md) <br/>

Soon:

<img src="flags/es_ES.svg?sanitize=true" alt="Català" height="16px" /> [Català](languages/ca.md) <br/>
<img src="flags/eu.svg?sanitize=true" alt="Eusaka" height="16px" /> [Eusaka](languages/eu.md) <br/>
<img src="flags/ro_RO.svg?sanitize=true" alt="Română" height="16px" /> [Română](languages/ro.md) <br/>
<img src="flags/el_GR.svg?sanitize=true" alt="Ελληνικάς" height="16px" /> [Ελληνικάς](languages/el.md) <br/>
<img src="flags/he_IL.svg?sanitize=true" alt="עברית" height="16px" /> [עברית](languages/he.md) <br/>
<img src="flags/ka.svg?sanitize=true" alt="ქართული" height="16px" /> [ქართული](languages/ka.md) <br/>
<img src="flags/ru_RU.svg?sanitize=true" alt="Русский" height="16px" /> [Русский](languages/ru.md) <br/>
<img src="flags/uk_UA.svg?sanitize=true" alt="Українська" height="16px" /> [Українська](languages/ru.md) <br/>
<img src="flags/ja.svg?sanitize=true" alt="日本語" height="16px" /> [日本語](languages/ja.md) <br/>
<span align="center">
<h1>Suru++ Folders</h1>
</span>

<p align="center">
<a href="https://gusbemacbe.github.io/suru-plus-folders/de"> <img src="images/de.svg?sanitize=true" alt="Deutsch" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/en"> <img src="images/en.svg?sanitize=true" alt="English" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/es"> <img src="images/es.svg?sanitize=true" alt="Español" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/fr"> <img src="images/fr.svg?sanitize=true" alt="Français" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/it"> <img src="images/it.svg?sanitize=true" alt="Italiano" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/nl"> <img src="images/nl.svg?sanitize=true" alt="Nederlands" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/pt-br"><img src="images/pt-br.svg?sanitize=true" alt="Português brasileiro" /></a>
<a href="https://gusbemacbe.github.io/suru-plus-folders/pt-pt"><img src="images/pt-pt.svg?sanitize=true" alt="Português europeu" /></a>
</p>
7 changes: 4 additions & 3 deletions completion/_suru-plus-folders
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @link: https://github.com/gusbemacbe/suru-plus-folders

_get_colors() {
local -a colors=(90ssummer adwaita aubergine aurora black berriez blue bluegrey bordeaux brown canonical cyan cyberneon darkblue discodingo fitdance green grey indigo magenta manjaro mint orange pink purple red teal vermillion violet white yaru yellow)
local -a colors=(90ssummer adwaita aubergine aurora berriez black blue bluegrey bordeaux brown canonical cyan cyberneon cyberpunk darkblue discodingo fitdance green grey indigo magenta manjaro mint orange pink purple red synthwave teal vermillion violet void white yaru yellow)
_wanted colors exlp 'color' compadd -- "${colors[@]}"
return 0
}
Expand Down Expand Up @@ -44,7 +44,8 @@ _arguments -C \
'(-D --default)'{-D,--default}'[back to the default color]' \
'(-R --restore)'{-R,--restore}'[restore the last used color from the config file]' \
'(-l --list)'{-l,--list}'[show available colors]' \
'(-o --once)'{-o,--once}'[do not save the changes to the config file]' \
'(-t --theme)'{-t,--theme}'[make changes to the specified theme]:icon-theme:_get_themes' \
'(-u --update-cache)'{-u,--update-cache}'[update icon cache]'
'(-u --update-caches)'{-u,--update-caches}'[update icon caches]'

# vim: ft=zsh sw=4 ts=4
# vim: ft=zsh sw=4 ts=4
10 changes: 5 additions & 5 deletions completion/suru-plus-folders
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ __get_themes() {
return
}

_suru_plus_folders()
{
_suru_plus_folders() {
local cur prev
local -a colors=(90ssummer adwaita aubergine aurora black berriez blue bluegrey bordeaux brown canonical cyan cyberneon darkblue discodingo fitdance green grey indigo magenta manjaro mint orange pink purple red teal vermillion violet white yaru yellow)
local -a colors=(90ssummer adwaita aubergine aurora berriez black blue bluegrey bordeaux brown canonical cyan cyberneon cyberpunk darkblue discodingo fitdance green grey indigo magenta manjaro mint orange pink purple red synthwave teal vermillion violet void white yaru yellow)
local -a opts=(
-h --help
-V --version
Expand All @@ -42,8 +41,9 @@ _suru_plus_folders()
-D --default
-R --restore
-l --list
-o --once
-t --theme
-u --update-cache
-u --update-caches
)

_get_comp_words_by_ref cur prev
Expand All @@ -64,4 +64,4 @@ _suru_plus_folders()

complete -F _suru_plus_folders suru-plus-folders

# ex: ts=4 sw=4 filetype=sh
# ex: ts=4 sw=4 filetype=sh
16 changes: 0 additions & 16 deletions flags/Artboard.svg

This file was deleted.

Loading

0 comments on commit 419d45a

Please sign in to comment.