PM/install.sh

19 lines
241 B
Bash
Raw Normal View History

2015-01-20 12:03:34 +03:00
#!/bin/bash
PWD=`pwd`
BIN_PATH=${HOME}/.local/bin
mkdir -p $BIN_PATH
cat > $BIN_PATH/pm << EOF
2015-01-20 14:05:31 +03:00
#!/bin/bash
2015-01-20 12:03:34 +03:00
cd $PWD
./pm.pl "\$@"
cd - >/dev/null 2>/dev/null
EOF
chmod +x $BIN_PATH/pm
echo "Please add $BIN_PATH to your \$PATH variable"