diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 9d0ab58..89eccb7 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Simple wrapper script around [fileicon](https://github.com/mklement0/fileicon) t ## Setup ### Prerequisites + [fileicon](https://github.com/mklement0/fileicon) needs to be installed on your system. ```shell @@ -12,11 +13,13 @@ $ brew install fileicon ``` ### Installation + ```shell $ curl -sSL https://github.com/jonafll/appiconupdate/releases/download/v0.1.0/appiconupdate.sh > /usr/local/bin/appiconupdate && chmod 755 /usr/local/bin/appiconupdate ``` Create a directory for your app icons and place them in it. Icons work best as .icns or .png files with 512x512 pixels. + ```shell $ mkdir /path/to/icons ``` @@ -32,15 +35,19 @@ Visual Studio Code.app Docker.app ``` ## Usage + ```shell $ appiconupdate /path/to/icons ``` Optionally you can set the icon path as environment variable + ```shell export ICN_PATH=/path/to/icons ``` + or create an alias. + ```shell alias appiconupdate="appiconupdate /path/to/icons" -``` \ No newline at end of file +``` diff --git a/appiconupdate.sh b/appiconupdate.sh index f7981e5..50f07e9 100755 --- a/appiconupdate.sh +++ b/appiconupdate.sh @@ -2,6 +2,7 @@ VERSION="v0.1.0" RED=$'\e[1;31m' +YELLOW=$'\e[1;33m' NC=$'\e[0m' if [[ "$1" == "-v" || "$1" == "--version" ]]; then @@ -23,7 +24,7 @@ for icn in "$ICN_PATH"/*; do app=/Applications/$app_name.app if [[ ! -d "$app" ]]; then - echo "${RED}Error:${NC} $app not found" + echo "${YELLOW}Skipping...${NC} $app not found" continue fi