From e9f513053ff88e52cc0efcf95fd317a494c2a9f2 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 13 May 2020 12:40:57 -0400 Subject: [PATCH] Autocommitted updated scripts from mari-wovn --- per-host/mari-wovn/.bash_aliases | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/per-host/mari-wovn/.bash_aliases b/per-host/mari-wovn/.bash_aliases index c0bc21e..c0212db 100644 --- a/per-host/mari-wovn/.bash_aliases +++ b/per-host/mari-wovn/.bash_aliases @@ -17,6 +17,7 @@ function tmux_start_branch() { ) } + function start_branch() { branch=${1:?} ( @@ -36,8 +37,12 @@ function start_branch() { cd ~/branches/"${branch}" || exit "$?" update_branch || exit "$?" printf "\a=== Your new branch ${branch} is ready!\n" - ) && \ - cd ~/branches/"${branch}" + ) + if [[ -d ~/branches/"$branch" ]]; then + cd ~/branches/"${branch}" + else + cd ~/equalizer.git + fi } function update_branch() { @@ -74,3 +79,6 @@ function install_equalizer_deps() { yarn install ) } + +function delete_branch() { +}