Skip to content

Commit

Permalink
Merge pull request #29 from ash-shell/br.install
Browse files Browse the repository at this point in the history
Clean up install script, add comment in README
  • Loading branch information
BrandonRomano committed Mar 1, 2016
2 parents d6760c8 + 7acd404 commit 6098e49
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Run this line right here, and you should be good to go:
curl https://raw.githubusercontent.com/ash-shell/ash/master/install.sh | sh
```

> [This script](/install.sh) simply clones down this repo to `/usr/local` and links the [ash file](/ash) to `/usr/local/bin`, which is usually always a `$PATH` directory. In the event that this one liner doesn't work (or you don't want to run a script downloaded over the network), you can simply recursively clone this repo, and add the [ash file](/ash) to somewhere in your $PATH.
# Modules

Modules are the fundamental building blocks of Ash. They allow you to build out custom CLI's and libraries that can be used in any other Ash module.
Expand Down
18 changes: 13 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/bin/bash
git clone --recursive https://github.com/ash-shell/ash.git
new_location="/usr/local/ash"
mv "./ash" "$new_location"
script_location="/usr/local"
path_location="/usr/local/bin"
current_location="$(pwd)"

# Clone
cd "$script_location"
git clone --recursive https://github.com/ash-shell/ash.git

# Add to $PATH
cd "$path_location"
ln -s "$new_location/ash" .
echo "Ash successfully installed"
ln -s "$script_location/ash/ash" .
echo "Ash successfully installed to $script_location/ash"

# Move back
cd "$current_location"

0 comments on commit 6098e49

Please sign in to comment.