1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 18:38:00 +00:00

Move git_stash function to zprezto

This commit is contained in:
Daniel Carrillo 2022-07-09 20:53:24 +02:00
parent daebb9d33a
commit d43545b427
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

16
.zshrc
View File

@ -71,22 +71,6 @@ kexec () {
[ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}" [ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}"
} }
# "dirty" squash before merge
git_squash () {
if [ -z $2 ]; then
echo "Usage: $0 <base branch> \"commit message\""
return 1
fi
local bbranch=$1
local message=$2
local cbranch=$(git branch --show-current)
git reset $(git merge-base $bbranch $cbranch)
git add -A
git commit -m "$message"
}
##### tilix ##### ##### tilix #####
if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then