File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ case "$option" in
1313 " checkout" )
1414 branches=" $( cd $path && git branch -r) "
1515 branch=$( echo -e " $branches " | dmenu -i -p Checkout:)
16- x-terminal-emulator -e ' bash -c "cd ' $path ' && git ' $option $branch ' ; zsh "'
16+ x-terminal-emulator -e ' sh -c "cd ' $path ' && git ' $option $branch ' ; $SHELL "'
1717 ;;
1818 " open" )
1919 codium $path
2020 ;;
2121 * )
22- x-terminal-emulator -e ' bash -c "cd ' $path ' && git ' $option ' ; zsh "'
22+ x-terminal-emulator -e ' sh -c "cd ' $path ' && git ' $option ' ; $SHELL "'
2323 ;;
2424esac
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33repos=' '
4+ ignore_regex=' antigen|vim'
45
56update () {
6- repos=$( find $HOME -name " .git" | awk -F/ ' BEGIN { OFS = FS } NF{NF-=1};1' | grep -E -v ' vim|antigen' )
7+ repos=$( find $HOME -name " .git" | awk -F/ ' BEGIN { OFS = FS } NF{NF-=1};1' )
8+ [[ -n $ignore_regex ]] && repos=$( echo -e " $repos " | grep -E -v " $ignore_regex " )
79 touch /tmp/repos.dat
810 echo -e " $repos " > /tmp/repos.dat
911}
You can’t perform that action at this time.
0 commit comments