Skip to content

Commit c12ddf0

Browse files
committed
start feat
1 parent f5d477f commit c12ddf0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

installers/zsh.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
mkdir -p ~/icaro/cli
4+
5+
if [ "$(find ~/icaro/cli | wc -l)" -eq 0 ]
6+
then
7+
# get latest tag
8+
curl https://api.github.com/repos/$org/$repo/releases/latest -s | jq .name -r
9+
wget https://github.com/icarolang/lang/releases/latest/download/cli.jar
10+
echo "alias icaro="java -jar ~/icaro/cli.jar"" >> .zshrc
11+
fi
12+
13+
mkdir -p icaro/lang && cd icaro/lang || exit

0 commit comments

Comments
 (0)