Skip to content

Commit

Permalink
improve cs & fs
Browse files Browse the repository at this point in the history
  • Loading branch information
jduan committed Apr 2, 2024
1 parent f96f00e commit d28c6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions misc_scripts/cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -euo pipefail

repos_root=$HOME/repos/
repos=(api-platform bayone devops infra release)
term=$1
shift

for repo in "${repos[@]}"
Expand All @@ -14,6 +13,6 @@ do
cd "$repos_root/worktrees/$repo"
# git fetch > /dev/null 2>&1
git checkout origin/main
rg "$term" "$repos_root/worktrees/$repo" "$@" || true
rg "$@" "$repos_root/worktrees/$repo" || true
printf "\n\n\n"
done
3 changes: 1 addition & 2 deletions misc_scripts/fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -euo pipefail

repos_root=$HOME/repos/
repos=(api-platform bayone devops infra release)
term=$1
shift

for repo in "${repos[@]}"
Expand All @@ -14,6 +13,6 @@ do
cd "$repos_root/worktrees/$repo"
# git fetch > /dev/null 2>&1
git checkout origin/main
fd "$term" "$repos_root/worktrees/$repo" "$@"
fd "$@" "$repos_root/worktrees/$repo"
printf "\n\n\n"
done

0 comments on commit d28c6a1

Please sign in to comment.