Add ghco script

This commit is contained in:
Rob Watson 2021-03-31 12:47:59 +02:00
parent 52377dfb22
commit 0912c908b0
5 changed files with 19 additions and 0 deletions

10
script/ghco Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Select and checkout a GitHub pull request using the GitHub CLI (required)
set -e
prid=$(gh pr list | fzf | awk '{print $1}')
if [ -z $prid ]; then
exit 0
fi
gh pr checkout $prid

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
#
# Clone or update vim to $HOME/dev/vim, build and install to $HOME/local
set -e
mkdir -p $HOME/dev

View File

@ -1,4 +1,6 @@
#/usr/bin/env bash
#
# Install vim plugins to $HOME/.vim/pack/git-plugins/opt
set -e
# Special case for fzf.vim plugin file:

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash
#
# Open a new tmux session named after the current directory with a basic
# development/editing environment.
set -e
cwd=$(pwd)

View File

@ -1,4 +1,6 @@
#/usr/bin/env bash
#
# Update vim plugins in $HOME/.vim/pack/git-plugins/opt
set -e
pluginhome=$HOME/.vim/pack/git-plugins