Update termux and add pullrequest script

master
Peter Šurda 1 year ago
parent cc18662091
commit 2323619b00
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
  1. 14
      files/pullrequest.sh
  2. 6
      files/termux.properties
  3. 5
      install.sh

@ -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

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

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

Loading…
Cancel
Save