Add ghco script
This commit is contained in:
parent
52377dfb22
commit
0912c908b0
|
@ -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
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Clone or update vim to $HOME/dev/vim, build and install to $HOME/local
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
mkdir -p $HOME/dev
|
mkdir -p $HOME/dev
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#/usr/bin/env bash
|
#/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Install vim plugins to $HOME/.vim/pack/git-plugins/opt
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Special case for fzf.vim plugin file:
|
# Special case for fzf.vim plugin file:
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Open a new tmux session named after the current directory with a basic
|
||||||
|
# development/editing environment.
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#/usr/bin/env bash
|
#/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Update vim plugins in $HOME/.vim/pack/git-plugins/opt
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pluginhome=$HOME/.vim/pack/git-plugins
|
pluginhome=$HOME/.vim/pack/git-plugins
|
||||||
|
|
Loading…
Reference in New Issue