can not run install.sh in osx
os version: OS X 10.11.4 After cloning this project, I met three question:
- First, ran this install.sh failed. Then checking this script file and echo SRC_PATH and APP_DIR, all return empty. and i changed such script file, here is change snippet which succeeded installing:
#Get current shell script directory name
SRC_PATH=$(cd "$(dirname "$0")"; pwd)
# Grab the directory name.
APP_DIR=${PWD##*/}
-
Second, there is not opt folder in os x and i made it manually, how about normal user? Should we make such directory while installing.
-
Third, i wrote a random text file using we command. After adding a line and want to save it. while cmd + s seems not working. it always let me store in another folder like desktop etc.so i wander if you can change the logic and just store this file and quit like vim.
Thanks for trying out the new install.sh on OSX! Would you be willing to make a pull request for (1) and (2) in your message?
For (3) it would be great to make a separate bug for that (so we can chat about the installer and that issue separately).
Oh, I'd also made a recent change in the install.sh here https://github.com/google/ci_edit/commit/8b3265b6add57faf17c96b94f94ff18996e70be4 Do either of those versions work better for you (either before or after my change to split the path by "/")?