Skip to content
Newer
Older
100755 17 lines (14 sloc) 371 Bytes
140c1e2 @Laboratory added simple-watcher with sample usage
authored
1 #!/bin/bash
2 SCRIPT_PATH=`pwd`;
3
4 ALIAS='function simple-watcher(){
5 ruby '$SCRIPT_PATH'/simple-watcher.rb "$@"
6 }
7 export -f simple-watcher
8 export PATH=$PATH:'$SCRIPT_PATH''
9
10 command="echo '$ALIAS' >> ~/.bashrc && . ~/.bashrc"
11 bashrc_content=`cat ~/.bashrc`
12 if [[ "$bashrc_content" != *$ALIAS* ]]; then
13 eval "$command"
14 echo "added: ${ALIAS} to ~/.bashrc"
15 fi
16 echo "done"
Something went wrong with that request. Please try again.