starting to add secrets
This commit is contained in:
parent
62725cd02e
commit
da85dd701b
4 changed files with 40 additions and 22 deletions
|
@ -16,8 +16,6 @@ kill_psg() {
|
|||
}
|
||||
|
||||
term_psg() {
|
||||
assert_command awk
|
||||
assert_command grep
|
||||
PIDS=$(ps aux | grep -v "grep" | grep ${1} | awk '{print $2}')
|
||||
echo Terminating ${PIDS}
|
||||
for pid in ${PIDS}; do
|
||||
|
@ -39,14 +37,10 @@ mail_clear() {
|
|||
|
||||
# git
|
||||
getdefault () {
|
||||
assert_command git
|
||||
assert_command grep
|
||||
assert_command sed
|
||||
git remote show origin | grep "HEAD branch" | sed 's/.*: //'
|
||||
}
|
||||
|
||||
master () {
|
||||
assert_command git
|
||||
git stash
|
||||
git checkout $(getdefault)
|
||||
pull
|
||||
|
@ -58,48 +52,35 @@ mp () {
|
|||
}
|
||||
|
||||
pullmaster () {
|
||||
assert_command git
|
||||
git pull origin $(getdefault)
|
||||
}
|
||||
|
||||
push () {
|
||||
assert_command git
|
||||
assert_command sed
|
||||
B=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||
git pull origin $B
|
||||
git push origin $B --no-verify
|
||||
}
|
||||
|
||||
pull () {
|
||||
assert_command git
|
||||
assert_command sed
|
||||
git fetch
|
||||
B=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||
git pull origin $B
|
||||
}
|
||||
|
||||
forcepush () {
|
||||
assert_command git
|
||||
assert_command sed
|
||||
B=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||
git push origin $B --force
|
||||
}
|
||||
|
||||
remote_branches () {
|
||||
assert_command git
|
||||
assert_command grep
|
||||
git branch -a | grep 'remotes' | grep -v -E '.*(HEAD|${DEFAULT})' | cut -d'/' -f 3-
|
||||
}
|
||||
|
||||
local_branches () {
|
||||
assert_command git
|
||||
assert_command grep
|
||||
assert_command cut
|
||||
git branch -a | grep -v 'remotes' | grep -v -E '.*(HEAD|${DEFAULT})' | grep -v '^*' | cut -d' ' -f 3-
|
||||
}
|
||||
|
||||
prunel () {
|
||||
assert_command git
|
||||
git fetch
|
||||
git remote prune origin
|
||||
|
||||
|
@ -119,13 +100,11 @@ prunel () {
|
|||
}
|
||||
|
||||
checkout () {
|
||||
assert_command git
|
||||
git fetch
|
||||
git checkout $1
|
||||
pull
|
||||
}
|
||||
|
||||
from_master () {
|
||||
assert_command git
|
||||
git checkout $(getdefault) $@
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue