summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tydavis@gmail.com>2023-08-06 15:22:33 -0700
committerTyler Davis <tydavis@gmail.com>2023-08-06 15:22:33 -0700
commite6f3706eca0bb8f5ceb16ceb32093fed8ac51305 (patch)
tree4c872f6640608ddca0c1ec2b3d0828a2c31a6253 /.profile
parent95ca103fb8746021154c5c02dfcf7d94b40ecff8 (diff)
downloaddotfiles-e6f3706eca0bb8f5ceb16ceb32093fed8ac51305.tar.gz
dotfiles-e6f3706eca0bb8f5ceb16ceb32093fed8ac51305.zip
git: add gitrect fix script
Diffstat (limited to '.profile')
-rw-r--r--.profile7
1 files changed, 7 insertions, 0 deletions
diff --git a/.profile b/.profile
index fc0edec..e2245d3 100644
--- a/.profile
+++ b/.profile
@@ -120,6 +120,13 @@ if [ "$(uname -s)" = "Darwin" ]; then
# Unlock Keychain cli
alias unlock='security unlock-keychain ~/Library/Keychains/login.keychain'
+
+ #upcode alias for quickly updating code where gitrect cannot
+ if [ "$(command -v fd)" ]; then
+ alias upcode="fd -H -t d -E mod -E vendor '.git$' ~/.code -x bash -c \"cd {//}; ~/.local/bin/fetchgit;\""
+ else
+ alias upcode="find ~/.code -name \".git\" |xargs -n1 -I{} bash -c 'cd {}/..; ~/.local/bin/fetchgit; ' "
+ fi
fi
# === END OSX ===