Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 6561864

Browse files
author
jclc
committed
added install script
1 parent d2da686 commit 6561864

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To summarise:
3939
~ $ echo "Now you can run tmc anywhere."
4040
```
4141

42-
If for some reason nothing was added added to your .bashrc or your shell of choice is not Bash, you can manually add the following line `source $HOME/.tmc-autocomplete.sh` (or `alias tmc="[PATH_TO_TMC]"` for tmc with no autocompletion) to your .bashrc / other shell rc file.
42+
If for some reason nothing was added to your .bashrc or your shell of choice is not Bash, you can manually add the following line `source $HOME/.tmc-autocomplete.sh` (or `alias tmc="[PATH_TO_TMC]"` for tmc with no autocompletion) to your .bashrc / other shell rc file.
4343

4444
If you are using Windows and you downloaded the .jar file, you must use tmc-cli directly with Java like so: `java -jar [path_to_tmc-cli.jar]`. In the following examples, replace `tmc` with this command. (note: you must have set Java on your system `%PATH%`. For more information, see [this Java help page](https://www.java.com/en/download/help/path.xml).)
4545

scripts/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#bin/sh
2+
3+
curl -O https://github.com/tmc-cli/tmc-cli/releases/download/0.6.3/tmc
4+
chmod u+x ./tmc
5+
if ./tmc ;then
6+
echo Error when installing.
7+
exit 1
8+
fi
9+
10+
11+
source $HOME/.bashrc
12+
13+
echo Installation complete.
14+
exit 0

0 commit comments

Comments
 (0)