aboutsummaryrefslogtreecommitdiff
path: root/shellrc
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc')
-rw-r--r--shellrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/shellrc b/shellrc
index b26c8a8..321c10a 100644
--- a/shellrc
+++ b/shellrc
@@ -90,6 +90,15 @@ gitbmerge() {
)
}
+# Create new branch from master
+gitbnew() {
+ git branch "$1" master
+ local NW="$(git rev-parse --show-toplevel)-$1"
+ git worktree add "$NW" $1
+ cd "$NW"
+ git submodule update --init --recursive
+}
+
# Make screenshot
xshot() {
import -window "$(xdotool selectwindow)" ~/xshot_$(date +%F_%H%M%S_%N).png