Update termux and add pullrequest script
Some checks failed
buildbot/travis_bionic Build done.

This commit is contained in:
Peter Šurda 2021-08-03 14:19:59 +08:00
parent cc18662091
commit 2323619b00
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
3 changed files with 25 additions and 0 deletions

14
files/pullrequest.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
if [ -z "${1}" ]; then
echo "No PR# specified, here is a list:"
curl -s https://api.github.com/repos/Bitmessage/PyBitmessage/pulls -s | jq '.[] | .number, .title' | paste - -
exit 1
fi
echo "Checking out PR ${1}"
curbranch=$(git status|head -1|cut -d\ -f3-)
git pull --all
git fetch -u origin pull/"$1"/head:"$1"
git checkout $1

6
files/termux.properties Normal file
View File

@ -0,0 +1,6 @@
extra-keys-style = none
extra-keys = [[]]
use-black-ui = true
back-key = escape
fullscreen = true
use-fullscreen-workaround = true

View File

@ -16,3 +16,8 @@ fi
cp -u files/bashrc ~/.bashrc cp -u files/bashrc ~/.bashrc
cp -u files/vimrc ~/.vimrc cp -u files/vimrc ~/.vimrc
mkdir -p ~/.termux
cp -u files/termux.properties ~/.termux
cp -u files/pullrequest.sh $PREFIX/bin
termux-reload-settings